update channels route to use native laravel notifications

This commit is contained in:
2026-03-28 15:52:37 +01:00
parent ef33591c2a
commit de0457c426
+1 -6
View File
@@ -2,11 +2,6 @@
use Illuminate\Support\Facades\Broadcast;
Broadcast::channel('users.admin', function ($user) {
return in_array($user->role, [1, 2]);
});
Broadcast::channel('user.{id}', function ($user, $id) {
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});