I want to organize my code a bit and I want to put all the controllers belonging to the administrator in a folder inside, for example:
controllers/administrador/LogingController.php
and on the route I specify it in the following way:
Route::get('administrador/login', 'administrador\LoginController@getLogin');
but I am mistaken with the error: "The administrator class \ LoginController does not exist". Probe putting the namespace to the class leaving as follows:
<?php
namespace administrador;
class LoginController extends BaseController{
and no longer pulls that error but: "Class 'administrator \ BaseController' not found"
also probe with the use app \ controllers \ BaseController but keep throwing the same error, also probe adding
app_path().'/controllers/administrador',
in the global.php and nothing, any solution?