update channels route to use native laravel notifications
This commit is contained in:
+1
-6
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user