From f1a313fba7833dec7586d3e84d0549c9266ad66e Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Wed, 1 Mar 2023 23:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Notifications/Channels/WebChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } }