update channel name into users.admin
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
use Illuminate\Support\Facades\Broadcast;
|
use Illuminate\Support\Facades\Broadcast;
|
||||||
|
|
||||||
|
|
||||||
Broadcast::channel('users.registration', function ($user) {
|
Broadcast::channel('users.admin', function ($user) {
|
||||||
return in_array($user->role, [1, 2]);
|
return in_array($user->role, [1, 2]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user