Skip to content

gabrieliuga/laravel-mail-log

Repository files navigation

Laravel Mail Log

Latest Version on Packagist Build Status Quality Score StyleCI Total Downloads

Log all outgoing emails from your laravel application

Installation

You can install the package via composer:

composer require gabrieliuga/laravel-mail-log

Usage

php artisan migrate
php artisan vendor:publish --tag=maillog-config

Setup auto clear command in app/Console/Kernel.php add ClearOldEmails::class

/**
 * The Artisan commands provided by your application.
 *
 * @var array
 */
protected $commands = [
    ClearOldEmails::class,
];

/**
 * Define the application's command schedule.
 *
 * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
 * @return void
 */
protected function schedule(Schedule $schedule)
{
    $schedule->command('giuga:purge-mail-log')->daily();
}

Testing

phpunit

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email me@iuga.dev instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.