From 1c78e00ef3815e7b0bf710037b52faefb464e97d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 6 Oct 2016 15:51:36 -0500 Subject: [PATCH] send eloquent collection for proper serializationg --- src/Illuminate/Notifications/ChannelManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Notifications/ChannelManager.php b/src/Illuminate/Notifications/ChannelManager.php index d36c16818ed7..4805182c688b 100644 --- a/src/Illuminate/Notifications/ChannelManager.php +++ b/src/Illuminate/Notifications/ChannelManager.php @@ -114,7 +114,7 @@ protected function queueNotification($notifiables, $notification) foreach ($notifiables as $notifiable) { foreach ($notification->via($notifiable) as $channel) { $bus->dispatch( - (new SendQueuedNotifications([$notifiable], $notification, [$channel])) + (new SendQueuedNotifications($this->formatNotifiables($notifiable), $notification, [$channel])) ->onConnection($notification->connection) ->onQueue($notification->queue) ->delay($notification->delay)