Update User model

pull/663/head
Daniel Supernault 6 years ago
parent 0144a5fdf6
commit c7a4adb8ad
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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;

Loading…
Cancel
Save