Skip to content

Commit

Permalink
notifications update
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Apr 1, 2024
1 parent 75e7233 commit a150429
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Listeners/Concerns/SendsNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ public function send(Notification $notification, array $channels): void
return;
}

Notifications::route($channel, $accounts)->notify(
$notification->on($channel),
);
foreach($accounts as $route) {
Notifications::route($channel, $route)->notify(
$notification->on($channel),
);
}
}
}
}

0 comments on commit a150429

Please sign in to comment.