瀏覽代碼

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