Skip to content

Commit

Permalink
Merge pull request #29698 from msaied93/patch-1
Browse files Browse the repository at this point in the history
[5.8] Bug Fix: Render `MailMessage` if `view` method was used
  • Loading branch information
taylorotwell committed Aug 23, 2019
2 parents d9e7a89 + 39ecbc7 commit b97edfc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Illuminate/Notifications/Messages/MailMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,12 @@ protected function arrayOfAddresses($address)
*/
public function render()
{
if (isset($this->view)) {
return Container::getInstance()->make('mailer')->render(
$this->view, $this->data()
);
}

return Container::getInstance()
->make(Markdown::class)
->render($this->markdown, $this->data());
Expand Down

0 comments on commit b97edfc

Please sign in to comment.