So I have a task I want to happen twice per day(perhaps more in the near future) and I have setup dispatcher (https://github.com/Indatus/dispatcher) and configured some of the basics. The task itself is a series of functions which together query several social media sites and save that information to a database. Right now these are methods in a controller and I know that is not where it should be. To perform the task now I am accessing the method/s through a route and calling it with a curl through a cron job.
My question is what would be the laravel way of handling this? Do I need to create a service provider and trigger the tasks through a recurring artisan command?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community