Update User model

pull/663/head
Daniel Supernault 2018-12-17 23:27:58 -07:00
rodzic 0144a5fdf6
commit c7a4adb8ad
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -54,6 +54,14 @@ class User extends Authenticatable
return $this->hasOne(UserSetting::class);
}
public function statuses()
{
return $this->hasManyThrough(
Status::class,
Profile::class
);
}
public function receivesBroadcastNotificationsOn()
{
return 'App.User.'.$this->id;