소스 검색

Update Profile model, add collections relation

Daniel Supernault 6 년 전
부모
커밋
64926762f2
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      app/Profile.php

+ 5 - 0
app/Profile.php

@@ -291,4 +291,9 @@ class Profile extends Model
     {
         return $this->hasMany(HashtagFollow::class);
     }
+
+    public function collections()
+    {
+        return $this->hasMany(Collection::class);
+    }
 }