1 | <?php |
||
7 | class RouteServiceProvider extends ServiceProvider |
||
8 | { |
||
9 | /** |
||
10 | * This namespace is applied to your controller routes. |
||
11 | * |
||
12 | * In addition, it is set as the URL generator's root namespace. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $namespace = 'Xetaravel\Http\Controllers'; |
||
17 | |||
18 | /** |
||
19 | * Define your route model bindings, pattern filters, etc. |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | public function boot() |
||
29 | |||
30 | /** |
||
31 | * Define the routes for the application. |
||
32 | * |
||
33 | * @return void |
||
34 | */ |
||
35 | public function map() |
||
41 | |||
42 | /** |
||
43 | * Define the "web" routes for the application. |
||
44 | * |
||
45 | * These routes all receive session state, CSRF protection, etc. |
||
46 | * |
||
47 | * @return void |
||
48 | */ |
||
49 | protected function mapWebRoutes() |
||
58 | |||
59 | /** |
||
60 | * Define the "api" routes for the application. |
||
61 | * |
||
62 | * These routes are typically stateless. |
||
63 | * |
||
64 | * @return void |
||
65 | */ |
||
66 | protected function mapApiRoutes() |
||
76 | } |
||
77 |