aw-studio / laravel-maillog
Automatically log information about all outgoing mail in your Laravel application.
Installs: 1 439
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- illuminate/contracts: ^8.0|^9.0|^10.0|^11.0
- illuminate/database: ^8.0|^9.0|^10.0|^11.0
- illuminate/mail: ^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
README
Automatically log information about all outgoing mail in your Laravel application
Setup
You can install the package via composer:
composer require aw-studio/laravel-maillog
Your application will now log outgoing email information to a maillog.log
file
in the storage/logs
folder.
Configuration
Additionally, if you want to log your outgoing mails to your database, you may do so with the following steps:
Publishing the package configuration and database migrations
php artisan vendor:publish --provider="AwStudio\Maillog\MaillogServiceProvider"
Run the migrations
php artisan migrate
Update the channels
config in config/maillog.php
:
'channels' => [ // 'log', 'database', ],