Skip to content

Commit 8604e6b

Browse files
committed
channels: chat room added
1 parent a8535a4 commit 8604e6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routes/channels.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
Broadcast::channel('chat.{receiverId}', function (User $user, int $receiverId) {
88
return (int) $user->id === (int) $receiverId;
99
});
10+
11+
Broadcast::channel('chat.room.{roomId}', function ($user, $roomId) {
12+
return $user instanceof User;
13+
});

0 commit comments

Comments
 (0)