I have a controller, lets say 'Foo' controller with function 'index' that takes a long time to execute.
I have a another controller, 'Bar' controller in which i want to process / call the 'index' function in the 'Foo' controller asynchronously.
class BarController extends \BaseController {
public function index()
{
// call the Foo controller here
}
}
Is there a way to call the 'index' function in the 'Foo' controller asynchronously?