Level 41
There's a workaround, please check it out: https://medium.com/@woganmay/convert-mailmessage-to-mailable-in-laravel-5-3-d26e74b55c51
I'd like to know if there's a better way, though.
P.S.: here's my version:
// inside mailable's "handle()":
$message = (new MailMessage)
->greeting('Hi there,')
->subject($this->subject)
->line($this->body);
return $this->view('vendor.notifications.email', $message->data());
2 likes