<?php
 namespace App\Providers; use Illuminate\Routing\Router; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use TechSoft\Laravel\Mod\ModTrait; class RouteServiceProvider extends ServiceProvider { use ModTrait; protected $namespace = 'App\Http\Controllers'; public function boot(Router $router) { parent::boot($router); } public function map(Router $router) { $router->group(['namespace' => $this->namespace], function ($router) { require app_path('Http/routes.php'); }); $this->requireRoutes(); } } 