From 43ff24d27637d88cb1b9400bee102e44b024f8b5 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sun, 12 Feb 2023 01:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E9=98=9F=E5=88=97=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Notifications/User/UserNotification.php | 8 ++++++++ app/Notifications/WebNotification.php | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/app/Notifications/User/UserNotification.php b/app/Notifications/User/UserNotification.php index 15eb9ac..5d8ed50 100644 --- a/app/Notifications/User/UserNotification.php +++ b/app/Notifications/User/UserNotification.php @@ -72,4 +72,12 @@ public function toArray(): array 'event' => 'notifications', ]; } + + public function viaQueues(): array + { + return [ + WebChannel::class => 'notifications', + 'mail' => 'notifications', + ]; + } } diff --git a/app/Notifications/WebNotification.php b/app/Notifications/WebNotification.php index f9f304b..9ecd9ad 100644 --- a/app/Notifications/WebNotification.php +++ b/app/Notifications/WebNotification.php @@ -48,4 +48,11 @@ public function via(): array { return [WebChannel::class]; } + + public function viaQueues(): array + { + return [ + WebChannel::class => 'notifications', + ]; + } }