Skip to content

Instantly share code, notes, and snippets.

@imacrayon
Created June 2, 2019 14:18
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 imacrayon/ae70aa2b39f08c587157623363866f52 to your computer and use it in GitHub Desktop.
Save imacrayon/ae70aa2b39f08c587157623363866f52 to your computer and use it in GitHub Desktop.
View a Laravel notification email in the browser
Route::get('test-notification', function () {
$message = (new \App\Notifications\Notification)->toMail('test@email.com');
$markdown = new \Illuminate\Mail\Markdown(view(), config('mail.markdown'));
return $markdown->render('vendor.notifications.email', $message->toArray());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment