| 1 | <?php namespace App\Providers; |
||
| 5 | class RouteServiceProvider extends ServiceProvider |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * This namespace is applied to the controller routes in your routes file. |
||
| 9 | * In addition, it is set as the URL generator's root namespace. |
||
| 10 | * |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $namespace = 'App\Http\Controllers'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Define your route model bindings, pattern filters, etc. |
||
| 17 | * |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | 19 | public function boot() |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Define the routes for the application. |
||
| 32 | */ |
||
| 33 | 19 | public function map() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Define the "api" routes for the application. |
||
| 41 | * These routes are typically stateless. |
||
| 42 | * |
||
| 43 | * @return void |
||
| 44 | */ |
||
| 45 | 19 | protected function mapApiRoutes() |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Define the "web" routes for the application. |
||
| 52 | * These routes all receive session state, CSRF protection, etc. |
||
| 53 | * |
||
| 54 | * @return void |
||
| 55 | */ |
||
| 56 | 19 | protected function mapWebRoutes() |
|
| 60 | } |
||
| 61 |