For a laravel project I want to view how the verify email, email looks.
I did run php artisan vendor:publish --tag=laravel-mail
and in the documentation I found:
Sometimes you may wish to capture the HTML content of a mailable without sending it. To accomplish this, you may call the render method of the mailable. This method will return the evaluated contents of the mailable as a string:
$invoice = App\Invoice::find(1);
return (new App\Mail\InvoicePaid($invoice))->render();
Is it possible to do something like this for the confirm email, email? I sarched for Mailable in my project but got no results. Is ther another way to view the email without sending it?
log
. You can then inspect all emails. And install Telescope using--dev
. – dbf