Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.8] Add renderable functionality to MailMessage #28386
This PR adds the Renderable contract to the MailMessage class, allowing easier previewing of mail notifications in the browser.
In your controller:
return (new FooNotification())->toMail('firstname.lastname@example.org');
This is parallel with the current functionality of the Mailable class, and obviates the need to search for code snippets to accomplish the same for Notifications. This addresses Issue #24073.