停车场管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

35 lines
887 B

<?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('run:automatically-start-activity')
->everyMinute() // 或者使用其他频率,如 hourly(), everyFiveMinutes() 等
->timezone('Asia/Shanghai'); // 设置时区,根据需要选择时区
}
/**
* Register the commands for the application.
*/
protected function commands(): void
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
protected $commands = [
Commands\AutomaticallyStartActivity::class,
Commands\AutoChangeRepair::class,
];
}