diff options
author | Marvin Borner | 2018-06-30 23:44:50 +0200 |
---|---|---|
committer | Marvin Borner | 2018-06-30 23:44:50 +0200 |
commit | b1c501e2f239ef6dcbf5e55e403834d793c6a0f6 (patch) | |
tree | 4532adc1e40f0da7580132b2a82c67c946a478f3 /routes/channels.php | |
parent | 70233ba2d306019d415b94e270d3a90672236544 (diff) |
Finished websocket integration
Diffstat (limited to 'routes/channels.php')
-rw-r--r-- | routes/channels.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/routes/channels.php b/routes/channels.php index f16a20b..109904c 100644 --- a/routes/channels.php +++ b/routes/channels.php @@ -9,8 +9,12 @@ | 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('App.User.{id}', function ($user, $id) { +// return (int) $user->id === (int) $id; +// }); + +Broadcast::channel('chat', function ($user) { + return Auth::check(); }); |