I have project on laravel. It uses schedule and cron. On my local machine i use (i have linux) crontab -e. I put in there php /var/www/poorbirds.com/artisan schedule:run >> /dev/null 2>&1.
In infinityfree i can’t do it. I need isert URL instead comand. In web.php i put this code
Route::get('/cron/collect_eggs', function () {
Artisan::call('collect:eggs');
});
In the field Run the script http://poorbirds.rf.gd/ I put cron/collect_eggs. And in the field every minuts I chose 2.
After 2 minutes, this script runs, and then does not run again. Thet is, the script runs only once.
And I think it’s not safe, because everybody can go to /cron/collect_eggs.
Is the cron job still there in the cron jobs page? There is a time limit to how long cron jobs can run. If they exceed the time limit, they are removed.
I am sorry but what am I supposed to read exactly? Like I said before the cron job is bugged, it only works with a few of chosen values, If the OP is using cloudflare (seeing you don’t you should get a new domain and setup cloudflare on it), he can use some third party tool like