Pārlūkot izejas kodu

Update Profile model

Daniel Supernault 6 gadi atpakaļ
vecāks
revīzija
0c300ceeee
1 mainītis faili ar 12 papildinājumiem un 0 dzēšanām
  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'
+        );
+    }
 }