Total Complexity | 4 |
Total Lines | 65 |
Duplicated Lines | 0 % |
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 | * @return void |
||
23 | */ |
||
24 | public function boot() |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Define the routes for the application. |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | public function map() |
||
38 | { |
||
39 | $this->mapApiRoutes(); |
||
40 | |||
41 | $this->mapWebRoutes(); |
||
42 | |||
43 | // |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Define the "web" routes for the application. |
||
48 | * |
||
49 | * These routes all receive session state, CSRF protection, etc. |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | protected function mapWebRoutes() |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * Define the "api" routes for the application. |
||
62 | * |
||
63 | * These routes are typically stateless. |
||
64 | * |
||
65 | * @return void |
||
66 | */ |
||
67 | protected function mapApiRoutes() |
||
75 |