If you use a linux host and register a cron job, it will run for you automatically, no need to use php artisan.
How to run a cron job from server?
Hi, To feed my sitemap.xml file, I have to launch a cron procedure every day at 00:10. I saw this method https://laravel.com/docs/5.6/scheduling but from what I understand you have to use php artisan schedule:run and I don't like it since the server has to run artisan every minute and it's laravel, through the schedules that defines the launch time. I would like the cron of the server to execute my launch procedure through the execution of a php file which consults my db and fills in the xml by calling a controller already wrote. My concern is how to call this php file from the cron and what's the structure of this php file. For information, I filled my xml file before by launching a routine that called a route that used curl but now that we go through cloudflare, this method generates errors for me.
Please or to participate in this conversation.