I am developing a website in Laravel 5.0 and hosted in Windows Server2012.
I am stuck at a problem which is I am calling a function B in controller from another function A and I want that the function A which calls the another function B does not wait for the completion of function B . And Function B gets completes in the background and independent form user termination of page and function A return .
I have searched this and found that this can be implemented through cron like jobs in windows, pcntl_fork() and Queue functionality in laravel. I am beginner in all this.
Please help! thanks in advance.
as the documentation states http://laravel.com/docs/5.1/queues, first you need to setup the driver - i would go for database in the beginning :
then create the Job that you want to add to the queue
then in the Controller dispatch the job
For that to work, you need to be running the Queue Listener:
Does that answer?