Posts Learn Components Snippets Categories Tags Tools 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

521 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.

If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️

)