Possible to armazenate all emails send by application in Redis, Eloquent or Elasticsearch.
Laravel Email Logger can be installed via composer by requiring the juniorb2ss/laravel-email-logger
package in your project's composer.json
.
{
"require": {
"juniorb2ss/laravel-email-logger": "v1.*"
}
}
Next add the service provider and the alias to app/config/app
.
'providers' => [
// ...
juniorb2ss\LaravelEmailLogger\Providers\LaravelEmailLoggerServiceProvider::class,
],
Now, run this in terminal:
php artisan vendor:publish --provider="juniorb2ss\LaravelEmailLogger\Providers\LaravelEmailLoggerServiceProvider"
php artisan migrate
Edit app/emaillogger.php
- Implementation Redis and Elasticsearch
- Implementation Tests