17 lines
492 B
PHP
17 lines
492 B
PHP
<?php
|
|
|
|
use App\Console\Commands\ExportPurgeCommand;
|
|
use Illuminate\Foundation\Inspiring;
|
|
use Illuminate\Support\Facades\Artisan;
|
|
use Illuminate\Support\Facades\Schedule;
|
|
|
|
Artisan::command('inspire', function () {
|
|
$this->comment(Inspiring::quote());
|
|
})->purpose('Display an inspiring quote');
|
|
|
|
// Purge export files older than 30 days daily at midnight.
|
|
Schedule::command(ExportPurgeCommand::class, ['--days=30'])
|
|
->dailyAt('00:00')
|
|
->withoutOverlapping()
|
|
->runInBackground();
|