| Total Complexity | 4 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| 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 | public function boot() |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Define the routes for the application. |
||
| 31 | */ |
||
| 32 | public function map() |
||
| 33 | { |
||
| 34 | $this->mapApiRoutes(); |
||
| 35 | |||
| 36 | $this->mapWebRoutes(); |
||
| 37 | |||
| 38 | // |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Define the "web" routes for the application. |
||
| 43 | * |
||
| 44 | * These routes all receive session state, CSRF protection, etc. |
||
| 45 | */ |
||
| 46 | protected function mapWebRoutes() |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Define the "api" routes for the application. |
||
| 55 | * |
||
| 56 | * These routes are typically stateless. |
||
| 57 | */ |
||
| 58 | protected function mapApiRoutes() |
||
| 66 |