mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update User model, prepare for websockets
This commit is contained in:
parent
d0d4def3ec
commit
2202fc416a
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue