As explained in the documentation, you can set a cronjob to execute laravel scheduler
I want to run tasks, every wednesday, every two hours starting at 13:00.
I placed the scheduler in Command Kernel for everyhour I want the task to run. But this doesn't work.
// project/app/Console/Kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command('inspire')
->wednesdays()
->at('13:00')
->at('15:00')
->at('17:00')
->at('19:00')
->withoutOverlapping();
}
What would be the correct way to set up the schedule for every two hours starting at 13:00 every wednesdays?
I would prefer not using a cronjob expression (* 13,14,15,16,17,18,19,20 * * 3
) because It's confusing.