You need a cron job that runs the schedule:run command per minute. Your schedule command will then check if it is time to run.
Jan 15, 2018
10
Level 4
laravel scheduling run one time
Hey Guys i used Scheduling in laravel and do something like this in kernal
$schedule->command('mail:daily')->everyMinute();
and i created mail:daily command and when i run schedule :
php artisan schedule:run
Running scheduled command: '/usr/bin/php7.2' 'artisan' mail:daily > '/dev/null' 2>&1
it done and email sent but a problem i have ,
it send me email for one time, it is Not run mail:daily over and over in every minute why So what can i do
Level 122
Yes, you need to be on a platform that supports crontab and have ssh access.
Many shared hosts don't support this, so I wrote this article several years ago http://novate.co.uk/help-my-host-does-not-support-cron-jobs/
Please or to participate in this conversation.