1 <?php namespace App\Providers; |
1 <?php |
|
2 |
|
3 namespace CorpusParole\Providers; |
2 |
4 |
3 use Illuminate\Routing\Router; |
5 use Illuminate\Routing\Router; |
4 use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; |
6 use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; |
5 |
7 |
6 class RouteServiceProvider extends ServiceProvider { |
8 class RouteServiceProvider extends ServiceProvider |
|
9 { |
|
10 /** |
|
11 * This namespace is applied to the controller routes in your routes file. |
|
12 * |
|
13 * In addition, it is set as the URL generator's root namespace. |
|
14 * |
|
15 * @var string |
|
16 */ |
|
17 protected $namespace = 'CorpusParole\Http\Controllers'; |
7 |
18 |
8 /** |
19 /** |
9 * This namespace is applied to the controller routes in your routes file. |
20 * Define your route model bindings, pattern filters, etc. |
10 * |
21 * |
11 * In addition, it is set as the URL generator's root namespace. |
22 * @param \Illuminate\Routing\Router $router |
12 * |
23 */ |
13 * @var string |
24 public function boot(Router $router) |
14 */ |
25 { |
15 protected $namespace = 'App\Http\Controllers'; |
26 parent::boot($router); |
16 |
27 |
17 /** |
28 // |
18 * Define your route model bindings, pattern filters, etc. |
29 } |
19 * |
|
20 * @param \Illuminate\Routing\Router $router |
|
21 * @return void |
|
22 */ |
|
23 public function boot(Router $router) |
|
24 { |
|
25 parent::boot($router); |
|
26 |
30 |
27 // |
31 /** |
28 } |
32 * Define the routes for the application. |
29 |
33 * |
30 /** |
34 * @param \Illuminate\Routing\Router $router |
31 * Define the routes for the application. |
35 */ |
32 * |
36 public function map(Router $router) |
33 * @param \Illuminate\Routing\Router $router |
37 { |
34 * @return void |
38 $router->group(['namespace' => $this->namespace], function ($router) { |
35 */ |
39 require app_path('Http/routes.php'); |
36 public function map(Router $router) |
40 }); |
37 { |
41 } |
38 $router->group(['namespace' => $this->namespace], function($router) |
|
39 { |
|
40 require app_path('Http/routes.php'); |
|
41 }); |
|
42 } |
|
43 |
|
44 } |
42 } |