Update Profile model

pull/928/head
Daniel Supernault 2019-03-02 00:18:23 -07:00
rodzic aaf6477b7e
commit 0c300ceeee
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

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