I tried to run scheduler in laravel 5.3 with the following code in App/Console/Kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command('queue:work')->everyMinute()->withoutOverlapping();
}
and set cron jobs in my shared hosting with the following:
* * * * * php /home/username/public_html/laravel/artisan schedule:run >> /dev/null 2>&1
but it doesn't work in my shared hosting
I used database driver for my queue, and the attempts still 0, which is the queue is not execute by the task scheduler.
Anyone can help me with this problem?