Update User model, prepare for websockets

This commit is contained in:
Daniel Supernault 2018-10-09 19:28:11 -06:00
parent d0d4def3ec
commit 2202fc416a
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -35,7 +35,8 @@ class User extends Authenticatable
protected $hidden = [
'email', 'password', 'is_admin', 'remember_token',
'email_verified_at', '2fa_enabled', '2fa_secret',
'2fa_backup_codes', '2fa_setup_at',
'2fa_backup_codes', '2fa_setup_at', 'deleted_at',
'updated_at'
];
public function profile()
@ -52,4 +53,9 @@ class User extends Authenticatable
{
return $this->hasOne(UserSetting::class);
}
public function receivesBroadcastNotificationsOn()
{
return 'App.User.'.$this->id;
}
}