I have function in a Controller, and I want that function to execute according to some randomly set cron jobs. I would like to know how to run a Controller function inside an Artisan Command.
I already saw this link: Laravel 5 - how to run a Controller method from an Artisan Command?
But to me it doesn't seem like the safest/best way to do this. Has anybody done this before?