I have a code in laravel, I want to setup a cron job in cpanel But I don’t know how to. I saw several examples that has file name to cron, but I am using Laravel so how can I point this to URL route?
/usr/bin/curl https://example.com/cron_route
I am not sure is this correct method or I can do that in different way, well I canot use laravel artisan scheduler, I have all custom code and custom Controller.
can anyone help me out with this?
2
Answers
Try this command
To add cronjob using command line, use this command
See for reference : https://crontab.guru/