diff --git a/app/Notifications/Channels/WebChannel.php b/app/Notifications/Channels/WebChannel.php index aad70ca..2b10d0f 100644 --- a/app/Notifications/Channels/WebChannel.php +++ b/app/Notifications/Channels/WebChannel.php @@ -27,7 +27,7 @@ public function send(mixed $notifiable, Notification $notification): void $user = (new User)->find($user_id); if ($user) { - broadcast(new Users($user, $data['event'], $data)); + broadcast(new Users($user, $data['event'] ?? 'notification', $data)); } } }