I'm working on a project based on the Laravel 4 framework. The framework is awesome, the website works great, no problem with that.
But I also have to write several scripts, mostly DB maintenance tasks that will be scheduled in a crontab.
I'm looking for a way to write these scripts in the same flavour as the web-site code. Or at least, re-use the models and if possible some other framework features.
Is there a way to do that ? Thanks in advance :)
Answer : Artisan Commands are indeed the way to go. Everything you need to know about these is available in the Artisan Commands documentation.