Posts Learn Components Snippets Categories Tags About
/

Testing Email Into Laravel Log for Local Development

Learn how to send email to your log file for easy and efficient testing during local development

Created on Aug 03, 2021

8 views

To easily test sending email in Laravel during local development, you can make use of the "log" driver option which the email content will be logged to the "storage/logs/laravel.log" file.

To enable this driver you can easily set the mail driver configuration from the environment (.env) file.
MAIL_DRIVER=log

One of the benefits of using the log driver is that it can help when developing while having no internet access.

Snippets by

PostSrc poster

PostSrc

Full stack developer mainly focusing on the front end side of the web. The main author of PostSrc and loves writing tutorial and guides online.