| Total Complexity | 4 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class RouteServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * This namespace is applied to the controller routes in your routes file. |
||
| 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 | * @return void |
||
| 23 | */ |
||
| 24 | 132 | public function boot() |
|
| 27 | 132 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Define the routes for the application. |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | 132 | public function map() |
|
| 35 | { |
||
| 36 | 132 | $this->mapApiRoutes(); |
|
| 37 | 132 | $this->mapWebRoutes(); |
|
| 38 | // |
||
| 39 | 132 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Define the "web" routes for the application. |
||
| 43 | * |
||
| 44 | * These routes all receive session state, CSRF protection, etc. |
||
| 45 | * |
||
| 46 | * @return void |
||
| 47 | */ |
||
| 48 | 132 | protected function mapWebRoutes() |
|
| 53 | 132 | } |
|
| 54 | |||
| 55 | /** |
||
| 56 | * Define the "api" routes for the application. |
||
| 57 | * |
||
| 58 | * These routes are typically stateless. |
||
| 59 | * |
||
| 60 | * @return void |
||
| 61 | */ |
||
| 62 | 132 | protected function mapApiRoutes() |
|
| 70 |