if we want to change the Controllers
directory we need:
Controllers
directory where we want it. For example from app/Http/Controllers
to app/Controllers
Controllers
folder, making they adhere to the new path, respecting the PSR-4 specific.routes.php
file, by editing app\Providers\RouteServiceProvider.php
and change this:protected $namespace = 'App\Http\Controllers';
to this:
protected $namespace = 'App\Controllers';