We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b8245a commit 20b9033Copy full SHA for 20b9033
routes/channels.php
@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+/*
4
+|--------------------------------------------------------------------------
5
+| Broadcast Channels
6
7
+|
8
+| Here you may register all of the event broadcasting channels that your
9
+| application supports. The given channel authorization callbacks are
10
+| used to check if an authenticated user can listen to the channel.
11
12
+*/
13
14
+Broadcast::channel('App.User.{id}', function ($user, $id) {
15
+ return (int) $user->id === (int) $id;
16
+});
0 commit comments