Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel run schedule only on production

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

}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #run #schedule #production
ADD COMMENT
Topic
Name
8+3 =