21 lines
739 B
PHP
21 lines
739 B
PHP
<?php
|
|
|
|
use App\Console\Commands\ExpirePendingActivitiesCommand;
|
|
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');
|
|
|
|
// Jadwalkan pembatalan otomatis tiket perjalanan pending yang melewati 5 jam
|
|
Schedule::command(ExpirePendingActivitiesCommand::class)->hourly();
|
|
|
|
// Jadwalkan pembersihan otomatis tong sampah sesuai retensi sistem setiap malam
|
|
Schedule::command('trash:prune')->daily();
|
|
|
|
// Jadwalkan pembuatan backup terenkripsi (.kmh) sistem otomatis setiap hari pukul 01:00
|
|
Schedule::command('backup:create --scope=semua')->dailyAt('01:00');
|
|
|