소스 검색

Update Profile model

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

+ 12 - 0
app/Profile.php

@@ -279,4 +279,16 @@ class Profile extends Model
     {
         return $this->hasMany(Circle::class);
     }
+
+    public function hashtags()
+    {
+        return $this->hasManyThrough(
+            Hashtag::class,
+            StatusHashtag::class,
+            'profile_id',
+            'id',
+            'id',
+            'hashtag_id'
+        );
+    }
 }