diff --git a/src/Illuminate/Notifications/Channels/MailChannel.php b/src/Illuminate/Notifications/Channels/MailChannel.php index f183b7520531..2250d3db4123 100644 --- a/src/Illuminate/Notifications/Channels/MailChannel.php +++ b/src/Illuminate/Notifications/Channels/MailChannel.php @@ -184,8 +184,12 @@ protected function getRecipients($notifiable, $notification, $message) $recipients = [$recipients]; } - return collect($recipients)->map(function ($recipient) { - return is_string($recipient) ? $recipient : $recipient->email; + return collect($recipients)->mapWithKeys(function ($recipient, $email) { + if (! is_numeric($email)) { + return [$email => $recipient]; + } + + return [(is_string($recipient) ? $recipient : $recipient->email)]; })->all(); }