From 1c8b34ddefc994ce0fc2a0fca3618635400139e1 Mon Sep 17 00:00:00 2001 From: nevadskiy Date: Thu, 1 Jun 2023 22:25:44 +0300 Subject: [PATCH] Return mail channel response --- src/Illuminate/Notifications/Channels/MailChannel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Notifications/Channels/MailChannel.php b/src/Illuminate/Notifications/Channels/MailChannel.php index fd3a3cc28911..24595284ebd9 100644 --- a/src/Illuminate/Notifications/Channels/MailChannel.php +++ b/src/Illuminate/Notifications/Channels/MailChannel.php @@ -46,7 +46,7 @@ public function __construct(MailFactory $mailer, Markdown $markdown) * * @param mixed $notifiable * @param \Illuminate\Notifications\Notification $notification - * @return void + * @return \Illuminate\Mail\SentMessage|null */ public function send($notifiable, Notification $notification) { @@ -61,7 +61,7 @@ public function send($notifiable, Notification $notification) return $message->send($this->mailer); } - $this->mailer->mailer($message->mailer ?? null)->send( + return $this->mailer->mailer($message->mailer ?? null)->send( $this->buildView($message), array_merge($message->data(), $this->additionalMessageData($notification)), $this->messageBuilder($notifiable, $notification, $message)