PHP code example of gabrieliuga / laravel-mail-log
1. Go to this page and download the library: Download gabrieliuga/laravel-mail-log library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gabrieliuga / laravel-mail-log example snippets
/**
* 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();
}
bash
php artisan migrate
bash
php artisan vendor:publish --tag=maillog-config