Skip to content

Commit

Permalink
Return mail channel response (#47310)
Browse files Browse the repository at this point in the history
  • Loading branch information
xalaida authored Jun 2, 2023
1 parent 4d891db commit 51c0912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Notifications/Channels/MailChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
Expand Down

0 comments on commit 51c0912

Please sign in to comment.