📜  laravel 仅在生产环境中运行计划 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:33.475000             🧑  作者: Mango

代码示例2
if (App::environment('production')) {
   $schedule->command('file:generate')
         ->daily();
   //run your commands here

}