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); } } }