protected $commands = [
Commands\FetchAndStore::class,
Commands\FeatchAndSrore2::class
];
protected function schedule(Schedule $schedule)
{
$schedule->command('command:FetchAndStore')
->everyMinute();
$schedule->command('command:FeatchAndSrore2')
->everyMinute();
}
这是我运行此命令的代码PHP artisan schedule:run
需要本地服务器和 VPS 服务器的解决方案