2026-10-12 23:47:41 +07:00
|
|
|
<?php
|
|
|
|
|
|
2026-10-22 12:23:13 +07:00
|
|
|
use App\Console\Commands\ExpirePendingActivitiesCommand;
|
2026-10-12 23:47:41 +07:00
|
|
|
use Illuminate\Foundation\Inspiring;
|
|
|
|
|
use Illuminate\Support\Facades\Artisan;
|
2026-10-22 12:23:13 +07:00
|
|
|
use Illuminate\Support\Facades\Schedule;
|
2026-10-12 23:47:41 +07:00
|
|
|
|
|
|
|
|
Artisan::command('inspire', function () {
|
|
|
|
|
$this->comment(Inspiring::quote());
|
|
|
|
|
})->purpose('Display an inspiring quote');
|
2026-10-22 12:23:13 +07:00
|
|
|
|
|
|
|
|
// Jadwalkan pembatalan otomatis tiket perjalanan pending yang melewati 5 jam
|
|
|
|
|
Schedule::command(ExpirePendingActivitiesCommand::class)->hourly();
|
|
|
|
|
|