Mohamed Said has created a new mail driver for Laravel that converts emails to files.
Installation is simple. Just require the package:
composer require themsaid/laravel-mail-preview
Add the service provider:
Finally, change your mail driver to preview:
Now when you send emails from your Laravel app the rendered HTML and EML will be saved to the
storage/email-previews folder. This way you can open it through various mail clients, your editor, or the browser for the HTML version.
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
White Label Your Web Design
LightCMS is the only true white-label Content Management System on the market. If you’ve ever considered brandi…
Creating a password-less email-only auth system in Laravel
Matt Stauffer writing for the Tighten blog has a new tutorial covering how to create a password-less login with Larav…