增加 广播鉴权
This commit is contained in:
parent
bf173a4352
commit
5be9c721df
@ -6,6 +6,16 @@
|
|||||||
return (int)$user->id === (int)$userId;
|
return (int)$user->id === (int)$userId;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Broadcast::channel('tasks.{userId}', function ($user, $userId) {
|
||||||
|
return (int)$user->id === (int)$userId;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Broadcast::channel('work-orders.{uuid}', function () {
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
Broadcast::channel('servers', function () {
|
Broadcast::channel('servers', function () {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user