Files
Scheduler/routes/console.php
Oskar-Mikael 17e2f0be35
All checks were successful
Deploy App / deploy (push) Successful in 9s
Set schedule timezone
2025-08-31 13:58:40 +02:00

14 lines
383 B
PHP

<?php
use App\Services\BotService;
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::call(fn() => app(BotService::class)->run())->everyMinute()->timezone('Europe/Copenhagen');