Created
December 1, 2016 05:37
-
-
Save nick-f/8380c1494e6b48b1eb2f87c830b67ca9 to your computer and use it in GitHub Desktop.
Laravel route for previewing Notification emails in the browser (credit to @adamwathan)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::get('mail-preview', function() { | |
$message = (new App\Notifications\TrialExpiring(Auth::user()))->toMail(Auth::user()); | |
return view($message->view[0], $message->data()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment