改进 默认事件

This commit is contained in:
iVampireSP.com 2023-03-01 23:00:28 +08:00
parent 4ad741c18f
commit f1a313fba7
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -27,7 +27,7 @@ public function send(mixed $notifiable, Notification $notification): void
$user = (new User)->find($user_id); $user = (new User)->find($user_id);
if ($user) { if ($user) {
broadcast(new Users($user, $data['event'], $data)); broadcast(new Users($user, $data['event'] ?? 'notification', $data));
} }
} }
} }