Преглед на файлове

Update ProfileMigration model, add target relation

Daniel Supernault преди 1 година
родител
ревизия
3f0539978e
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      app/Models/ProfileMigration.php

+ 5 - 0
app/Models/ProfileMigration.php

@@ -16,4 +16,9 @@ class ProfileMigration extends Model
     {
         return $this->belongsTo(Profile::class, 'profile_id');
     }
+
+    public function target()
+    {
+        return $this->belongsTo(Profile::class, 'target_profile_id');
+    }
 }