1 | <?php |
||
12 | class RouteServiceProvider extends ServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * This namespace is applied to the controller routes in your routes file. |
||
16 | * |
||
17 | * In addition, it is set as the URL generator's root namespace. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $namespace = 'App\Http\Controllers'; |
||
22 | |||
23 | /** |
||
24 | * Define your route model bindings, pattern filters, etc. |
||
25 | * @name boot |
||
26 | */ |
||
27 | public function boot() |
||
33 | |||
34 | /** |
||
35 | * Define the routes for the application. |
||
36 | * |
||
37 | * @param \Illuminate\Routing\Router $router |
||
38 | * @return void |
||
39 | */ |
||
40 | /** |
||
41 | * Define the routes for the application. |
||
42 | * |
||
43 | * @return void |
||
44 | */ |
||
45 | public function map() |
||
53 | |||
54 | /** |
||
55 | * Define the "web" routes for the application. |
||
56 | * |
||
57 | * These routes all receive session state, CSRF protection, etc. |
||
58 | * |
||
59 | * @return void |
||
60 | */ |
||
61 | protected function mapWebRoutes() |
||
70 | |||
71 | /** |
||
72 | * Define the "api" routes for the application. |
||
73 | * |
||
74 | * These routes are typically stateless. |
||
75 | * |
||
76 | * @return void |
||
77 | */ |
||
78 | protected function mapApiRoutes() |
||
88 | } |
||
89 |