| Total Complexity | 4 |
| Total Lines | 52 |
| 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 | * |
||
| 13 | * In addition, it is set as the URL generator's root namespace. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $namespace = 'App\Http\Controllers'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Define your route model bindings, pattern filters, etc. |
||
| 21 | */ |
||
| 22 | 2 | public function boot() |
|
| 25 | 2 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Define the routes for the application. |
||
| 29 | */ |
||
| 30 | 2 | public function map() |
|
| 31 | { |
||
| 32 | 2 | $this->mapApiRoutes(); |
|
| 33 | |||
| 34 | 2 | $this->mapWebRoutes(); |
|
| 35 | 2 | } |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Define the "web" routes for the application. |
||
| 39 | * |
||
| 40 | * These routes all receive session state, CSRF protection, etc. |
||
| 41 | */ |
||
| 42 | 2 | protected function mapWebRoutes() |
|
| 47 | 2 | } |
|
| 48 | |||
| 49 | /** |
||
| 50 | * Define the "api" routes for the application. |
||
| 51 | * |
||
| 52 | * These routes are typically stateless. |
||
| 53 | */ |
||
| 54 | 2 | protected function mapApiRoutes() |
|
| 62 |