From 7a54d8f4d857b8c23bc84692a5a15f7127366b4c Mon Sep 17 00:00:00 2001 From: Mark van Eijk Date: Mon, 1 Apr 2024 09:08:47 +0200 Subject: [PATCH] wip --- src/Listeners/Concerns/SendsNotifications.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Listeners/Concerns/SendsNotifications.php b/src/Listeners/Concerns/SendsNotifications.php index 424149e..60b6c84 100644 --- a/src/Listeners/Concerns/SendsNotifications.php +++ b/src/Listeners/Concerns/SendsNotifications.php @@ -24,10 +24,8 @@ public function send(Notification $notification, array $channels): void return; } - foreach($accounts as $route) { - Notifications::route($channel, $route)->notify( - $notification->on($channel), - ); + foreach($accounts as $account) { + Notifications::route($channel, $account)->notify($notification); } } }