Update Profile model

pull/928/head
Daniel Supernault 6 years ago
parent aaf6477b7e
commit 0c300ceeee
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save