diff --git a/src/Illuminate/Notifications/ChannelManager.php b/src/Illuminate/Notifications/ChannelManager.php index 6d8ca5d8fe29..b738b19c4068 100644 --- a/src/Illuminate/Notifications/ChannelManager.php +++ b/src/Illuminate/Notifications/ChannelManager.php @@ -59,13 +59,13 @@ public function sendNow($notifiables, $notification, array $channels = null) foreach ($notifiables as $notifiable) { $notificationId = Uuid::uuid4()->toString(); - $channels = $channels ?: $notification->via($notifiable); + $viaChannels = $channels ?: $notification->via($notifiable); - if (empty($channels)) { + if (empty($viaChannels)) { continue; } - foreach ($channels as $channel) { + foreach ($viaChannels as $channel) { $notification = clone $original; if (! $notification->id) {