Reputation: 121
I am trying to implement CodeIgniter style folder structure to use HMVC in Laravel. I am following this tutorial. However I am unable to route to the controller inside of the modules folder. My current Laravel folder structure is:
I want to route to some function of UsersController
.
Upvotes: 3
Views: 1603
Reputation: 325
you can simply use route as you do with normal controllers inside of default controller folder
Route::any('name', array('name' => 'SomeController@someMethod'));
but name of two controller shouldn't be same i.e controllers on controller folder and controller inside your module folder must have different name. For same name you can use namespace.
Upvotes: 3