SmartCane/laravel_app/app/Console/Kernel.php
2025-06-18 08:22:43 +00:00

31 lines
724 B
PHP

<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*/
protected function schedule(Schedule $schedule): void
{
$schedule->command('smartcane:build-reports')->dailyAt('7:00');
$schedule->command('queue:work --timeout=600 --stop-when-empty')
->withoutOverlapping()
->everyMinute();
}
/**
* Register the commands for the application.
*/
protected function commands(): void
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}