From 2202fc416a1c67d8df6e5593c311c1e44d60d773 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 9 Oct 2018 19:28:11 -0600 Subject: [PATCH] Update User model, prepare for websockets --- app/User.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/User.php b/app/User.php index 7fba2c17..16d1b307 100644 --- a/app/User.php +++ b/app/User.php @@ -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; + } }