api/routes/console.php

28 lines
756 B
PHP

<?php
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');
Schedule::command('horizon:snapshot')->everyFiveMinutes();
Schedule::command('sanctum:prune-expired --hours=24')
->daily()
->withoutOverlapping()
->onOneServer();
Schedule::command('auth:clear-resets')
->daily()
->withoutOverlapping()
->onOneServer();
Schedule::command('device-tokens:prune-stale --days=180')
->daily()
->withoutOverlapping()
->onOneServer();
Schedule::command('meal-posts:generate-ai')
->daily()
->withoutOverlapping(55)
->onOneServer();