I am using Laravel 9 and I am trying to set several tasks in my schedule. One of them should be called every minutes the other every 5 minutes .
protected function schedule(Schedule $schedule)
{
$schedule->call(/* send myself a mail */)->everyMinute();
$schedule->call(/* send myself a mail */)->everyFiveMinutes();
}
On my host I have a cron task called every minutes :
/opt/alt/php81/usr/bin/php ~/my-path/artisan schedule:run
However every minutes I receive the mail from my everyMinute()
task, and the mail from my everyFiveMinutes()
task.
I tried with job
and command
instead of call
but it doesn't changes anything, same with ->cron('* * * * *')
instead of ->everyMinute()