Exemple #1
0
 /**
  * Define the application's command schedule.
  *
  * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
  * @return void
  */
 protected function schedule(Schedule $schedule)
 {
     $schedule->command('inspire')->hourly();
     $schedule->call(function () {
         $loader = new DataLoader();
         $loader->updateMatches();
     })->everyMinute();
 }
 public function updatematches()
 {
     ini_set('max_execution_time', 300);
     $loader = new DataLoader();
     $loader->updateMatches();
 }