Answer the question
In order to leave comments, you need to log in
Laravel cron on hosting (no console access)?
I want to create a cron task and run it on my hosting. The problem is that I can't start the scheduler i.e. I can not register run in the console. Because I don't have access to it
And I have this thing /usr/bin/php /var/www/username/data/www/domain.ru/path/cron.php , this cron.php file is where the task is described. How do I then make it using Laravel, how does it appear in Laravel? Is there a controller or something else?
PS Before that, I have never run task cron, I guess that this contraption will just run the file, and it does not have to return something, but is it enough that the command is simply executed there? (in fact, this can be done with a regular PHP file, but I need to use the power of lavarel) How to be?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question