Hi,
I am new to the Laravel Framework and would like to know if there is any documentation on the proper way of invoking Laravel from a cron job (is it even supported)?
I am using Laravel as a platform for handling Web requests, but my application also needs to be able to run background processes. In such scenarios, there are no HTTP requests. Will Laravel know how to handle such scenarios?
What is the right way of integrating Laravel with cron?
Thanks,
You probably want to check out the documentation around creating Artisan Commands - they are CLI invoked php scripts without the HTTP entry points.
http://laravel.com/docs/commands#building-a-command
I am using them for the same purpose as you and running backend processes behind my web served laravel frontend.
You can then cron them all manually or use the excellent Dispatcher package available here https://github.com/Indatus
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community