soluzione-software / laravel-email-logging
Email logging driver for Laravel.
Installs: 1 026
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
- illuminate/log: ^5.8|^6.0|^7.0|^8.0
- illuminate/mail: ^5.8|^6.0|^7.0|^8.0
- illuminate/support: ^5.8|^6.0|^7.0|^8.0
Conflicts
- monolog/monolog: <1.23
README
Adds the email driver for logging.
Installation and usage
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('...');
Configuration
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, ], ], ];