diff --git a/src/Illuminate/Notifications/ChannelManager.php b/src/Illuminate/Notifications/ChannelManager.php index 6ef153cd6c91..04884e20c732 100644 --- a/src/Illuminate/Notifications/ChannelManager.php +++ b/src/Illuminate/Notifications/ChannelManager.php @@ -59,10 +59,7 @@ public function sendNow($notifiables, $notification) $original = clone $notification; foreach ($notifiables as $notifiable) { - $notification = clone $original; - - $notification->id = (string) Uuid::uuid4(); - + $notificationId = (string) Uuid::uuid4(); $channels = $notification->via($notifiable); if (empty($channels)) { @@ -70,6 +67,10 @@ public function sendNow($notifiables, $notification) } foreach ($channels as $channel) { + $notification = clone $original; + + $notification->id = $notificationId; + if (! $this->shouldSendNotification($notifiable, $notification, $channel)) { continue; }