mardi 4 septembre 2018

How to use the `array` mail driver in Laravel?

Starting from version 5.7 Laravel suggests to use the array driver for Mail during testing:

Unfortunately, the documentation tells nothing about this driver. According to the source code, the driver stores all the messages in memory without actually sending them. How to get (in order to check) the stored "sent" messages during unit testing?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire