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', + ]; + } }