| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class RouteServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * This namespace is applied to your controller routes. |
||
| 12 | * In addition, it is set as the URL generator's root namespace. |
||
| 13 | */ |
||
| 14 | protected $namespace = 'App\Http\Controllers'; |
||
| 15 | public const HOME = '/dashboard'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Define your route model bindings, pattern filters, etc. |
||
| 19 | */ |
||
| 20 | 96 | public function boot() |
|
| 21 | { |
||
| 22 | 96 | parent::boot(); |
|
| 23 | 96 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Define the routes for the application. |
||
| 27 | */ |
||
| 28 | 96 | public function map() |
|
| 29 | { |
||
| 30 | // $this->mapApiRoutes(); |
||
| 31 | 96 | $this->mapWebRoutes(); |
|
| 32 | 96 | $this->mapUserRoutes(); |
|
| 33 | 96 | $this->mapAdminRoutes(); |
|
| 34 | 96 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Define the basic web routes for the application. |
||
| 38 | */ |
||
| 39 | 96 | protected function mapWebRoutes() |
|
| 40 | { |
||
| 41 | 96 | Route::middleware('web') |
|
| 42 | 96 | ->namespace($this->namespace) |
|
| 43 | 96 | ->group(base_path('routes/web.php')); |
|
| 44 | 96 | } |
|
| 45 | |||
| 46 | 96 | protected function mapUserRoutes() |
|
| 47 | { |
||
| 48 | 96 | Route::middleware('web') |
|
| 49 | 96 | ->namespace($this->namespace) |
|
| 50 | 96 | ->group(base_path('routes/user.php')); |
|
| 51 | 96 | } |
|
| 52 | |||
| 53 | 96 | protected function mapAdminRoutes() |
|
| 58 | 96 | } |
|
| 59 | |||
| 60 | /** |
||
| 61 | * Define the "api" routes for the application. |
||
| 62 | * These routes are typically stateless. |
||
| 72 |