eaeedf2029
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
414 B
PHP
16 lines
414 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Broadcast;
|
|
|
|
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
|
|
return (int) $user->id === (int) $id;
|
|
});
|
|
|
|
Broadcast::channel('chat.{receiverId}', function ($user, $receiverId) {
|
|
return (int) $user->id === (int) $receiverId;
|
|
});
|
|
|
|
Broadcast::channel('notifications.{userId}', function ($user, $userId) {
|
|
return (int) $user->id === (int) $userId;
|
|
});
|