Laravel Run Schedule uniquement sur la production
if (App::environment('production')) {
$schedule->command('file:generate')
->daily();
//run your commands here
}
Thoughtless Tortoise