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