diff options
author | Marvin Borner | 2018-07-20 13:57:57 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-20 13:57:57 +0200 |
commit | 932d439444f10774bff546923cc0a2e5e2f2857b (patch) | |
tree | ef9bcc039d263f929b4f4991881a52a8343c1dfe /routes/channels.php | |
parent | bd04ac097a0a29ba7c48a5f4a46d99ae7d86eea1 (diff) |
Rewrite (only for backend/oauth/api use from now on)
Diffstat (limited to 'routes/channels.php')
-rw-r--r--[-rwxr-xr-x] | routes/channels.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/routes/channels.php b/routes/channels.php index 109904c..f16a20b 100755..100644 --- a/routes/channels.php +++ b/routes/channels.php @@ -9,12 +9,8 @@ | application supports. The given channel authorization callbacks are | used to check if an authenticated user can listen to the channel. | - */ +*/ -// Broadcast::channel('App.User.{id}', function ($user, $id) { -// return (int) $user->id === (int) $id; -// }); - -Broadcast::channel('chat', function ($user) { - return Auth::check(); +Broadcast::channel('App.User.{id}', function ($user, $id) { + return (int) $user->id === (int) $id; }); |