mmeyer2k / laravel-mail-file-driver
A Laravel Mail driver that saves messages to disk
Installs: 226 376
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- laravel/framework: ^8.0|^9.0
README
A Laravel Mail driver that saves messages to disk for testing/ci purposes.
Install
composer require mmeyer2k/laravel-mail-file-driver '0.0.1'
Replace default laravel mail manager in /config/app.php
return [ 'providers' => [ # ... #Illuminate\Mail\MailServiceProvider::class, Mmeyer2k\LaravelMailFile\MailFileServiceProvider::class, # ... ], ];
Add to .env
MAIL_DRIVER=file
Custom storage location in .env
By default, messages are saved to path returned by sys_get_temp_dir()
.
MAIL_FILE_PATH=/path/to/storage