Skip to content

Instantly share code, notes, and snippets.

@nick-f
Created December 1, 2016 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nick-f/8380c1494e6b48b1eb2f87c830b67ca9 to your computer and use it in GitHub Desktop.
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)
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