Laravel: Load method in another controller without changing the url

Use IoC…

App::make($controller)->{$action}();

Eg:

App::make('HomeController')->getIndex();

and you may also give params

App::make('HomeController')->getIndex($params);

Leave a Comment