dashboard gereparerd
This commit is contained in:
+1
-1
@@ -8,5 +8,5 @@ Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
|
||||
});
|
||||
|
||||
Broadcast::channel('chats.{chat}', function ($user, Chat $chat) {
|
||||
return $user->can('view', $chat->chatable);
|
||||
return $user?->can('view', $chat);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user