I am using Ubuntu 16.04 LTS, and I want to set up cron job for my laravel services. this is how I set up
5 * * * * php /var/www/myapp/artisan schedule:run 1>> /dev/null 2>&1
and in my laravel app kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command('email:send')
->dailyAt('03:30');
$schedule->command('queue:work')->everyFiveMinutes();
}
it did not trigger, I don't know why it did not trigger the command
Thank you in advance.
You should use this:
*/5 * * * * php /var/www/myapp/artisan schedule:run 1>> /dev/null 2>&1