소스 검색

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