From 0c300ceeeefe1d4a6d48a8df30269e6e1d9860e7 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 2 Mar 2019 00:18:23 -0700 Subject: [PATCH] Update Profile model --- app/Profile.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/Profile.php b/app/Profile.php index 0eb8255f2..86c83bf5e 100644 --- a/app/Profile.php +++ b/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' + ); + } }