1
0
Fork 0

Update Profile model

This commit is contained in:
Daniel Supernault 2019-03-02 00:18:23 -07:00
parent aaf6477b7e
commit 0c300ceeee
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 12 additions and 0 deletions

View File

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