each(function ($task) use ($schedule) { $schedule->job($task['job'])->everyFiveMinutes()->between($task['from'], $task['to']); // you can wrap the job registration in the task class to allow specifying any schedule options $task->schedule($schedule); }); } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }