Support the ongoing development of Laravel.io →
Configuration IOC Architecture

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?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.