| Total Complexity | 4 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class RouteServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | use \Mcamara\LaravelLocalization\Traits\LoadsTranslatedCachedRoutes; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * This namespace is applied to your controller routes. |
||
| 15 | * |
||
| 16 | * In addition, it is set as the URL generator's root namespace. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $namespace = 'App\Http\Controllers'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Define your route model bindings, pattern filters, etc. |
||
| 24 | * |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | 102 | public function boot() |
|
| 31 | 102 | } |
|
| 32 | 102 | ||
| 33 | /** |
||
| 34 | * Define the routes for the application. |
||
| 35 | * |
||
| 36 | * @return void |
||
| 37 | */ |
||
| 38 | public function map() |
||
| 39 | 102 | { |
|
| 40 | $this->mapApiRoutes(); |
||
| 41 | 102 | ||
| 42 | $this->mapWebRoutes(); |
||
| 43 | 102 | } |
|
| 44 | |||
| 45 | /** |
||
| 46 | 102 | * Define the "web" routes for the application. |
|
| 47 | * |
||
| 48 | * These routes all receive session state, CSRF protection, etc. |
||
| 49 | * |
||
| 50 | * @return void |
||
| 51 | */ |
||
| 52 | protected function mapWebRoutes() |
||
| 57 | 102 | } |
|
| 58 | 102 | ||
| 59 | 102 | /** |
|
| 60 | 102 | * Define the "api" routes for the application. |
|
| 61 | * |
||
| 62 | * These routes are typically stateless. |
||
| 63 | * |
||
| 64 | * @return void |
||
| 65 | */ |
||
| 66 | protected function mapApiRoutes() |
||
| 74 |