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

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