I'm doing some testing with a Laravel 5.6 (Spark 6.0) and events and notifications set up.
I don't want to send the emails with every test, is there a way it can turned off for testing?
Doing some Googling showed to add a 'prepend' value to the Mail config:
'pretend' => env('MAIL_PRETEND', true)
However, this doesn't seem to work and I cannot find anything in the Laravel docs for it. Is there still a way to do this in l5.6?
EDIT: By doesn't work, I mean that the mail is still sent via email.
Thanks!
log
file, and not sent. – Ohgodwhy Mar 14 '18 at 9:37