Email logging driver for Laravel.
soluzione-software/laravel-email-logging is a Laravel package for email logging driver for laravel..
It currently has 0 GitHub stars and 1.028 downloads on Packagist (latest version 0.3.1).
Install it with composer require soluzione-software/laravel-email-logging.
Discover more Laravel packages by soluzione-software
or browse all Laravel packages to compare alternatives.
Last updated
Adds the email driver for logging.
composer require soluzione-software/laravel-email-logging
create channel config in config/logging.php:
return [
//...
'channels' => [
//...
'email' => [
'driver' => 'email',
],
],
];
Then you can do like follows:
Illuminate\Support\Facades\Log::channel('email')->error('...');
See Laravel documentation for configuring channels.
In order to disable email sending, set null value for to option, like follows:
return [
//...
'channels' => [
//...
'email' => [
//...
'to' => null,
],
],
];
Name | Default
------------- | -------------
level | error
to | null
from.address | see config mail.from.address
from.name | see config mail.from.name