Home / Snippets / Testing Email Into Laravel Log for Local Development
Testing Email Into Laravel Log for Local Development cover

Testing Email Into Laravel Log for Local Development

544

3 years ago

0 comments

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.
notion avatar

Alaz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

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

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this