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