I am working with Laravel 5.1 in an app that is already running, but I am changing from modules to the repository pattern.
"psr-4": {
"app\": "app/",
"Cms\": "app/cms"
}
The first one is the default namespace and the second is what I'm changing and going to that folder. When I call a controller inside app / cms I get the following error:
Class app \ Http \ Controllers \ CalendarController does not exist
It's like you never look in app \ cms.
Route::group(['namespace' => 'Calendario'], function() {
Route::resource('calendario', 'CalendarioController');
});
and the namespace of the controller as:
namespace Cms\Calendario;
Thanks for your help!