update channel private

This commit is contained in:
2024-05-14 14:01:21 +07:00
parent c07241397f
commit afdd92a0f2
2 changed files with 4 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ use Illuminate\Support\Facades\Broadcast;
|
*/
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
Broadcast::channel('chat.{id}', function ($user, $id) {
// return (int) $user->id === (int) $id;
return true;
});