增加 广播鉴权

This commit is contained in:
iVampireSP.com 2023-01-10 20:44:32 +08:00
parent bf173a4352
commit 5be9c721df
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -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;
}); });