ソースを参照

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');
+    }
 }