I am trying to run multiple jobs in Laravel at different times. This is the code:
protected function schedule(Schedule $schedule)
{
$schedule->command('emails:send')->dailyAt('08:00');
$schedule->command('emails:evening-status')->dailyAt('17:00');
$schedule->command('email:weekly-report')->weekly()->mondays()->at('08:00');
}
The problem here is that only the first command emails:send
works. The other commands don't work at the specified time. However, when I run them manually they work fine.
What is it that I am missing?