12 lines
231 B
PHP
12 lines
231 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Broadcast;
|
|
|
|
Broadcast::channel('users.{userId}', function ($user, $userId) {
|
|
return (int) $user->id === (int) $userId;
|
|
});
|
|
|
|
Broadcast::channel('servers', function () {
|
|
return true;
|
|
});
|