Let router be inherited by route script.
This commit is contained in:
parent
076d86bf26
commit
692c9667c7
|
@ -11,4 +11,4 @@
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::get('/', 'HomeController@index');
|
$router->get('/', 'HomeController@index');
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php namespace App\Providers;
|
<?php namespace App\Providers;
|
||||||
|
|
||||||
|
use Illuminate\Routing\Router;
|
||||||
use Illuminate\Contracts\Routing\UrlGenerator;
|
use Illuminate\Contracts\Routing\UrlGenerator;
|
||||||
use Illuminate\Routing\RouteServiceProvider as ServiceProvider;
|
use Illuminate\Routing\RouteServiceProvider as ServiceProvider;
|
||||||
|
|
||||||
|
@ -32,7 +33,7 @@ public function map()
|
||||||
// Once the application has booted, we will include the default routes
|
// Once the application has booted, we will include the default routes
|
||||||
// file. This "namespace" helper will load the routes file within a
|
// file. This "namespace" helper will load the routes file within a
|
||||||
// route group which automatically sets the controller namespace.
|
// route group which automatically sets the controller namespace.
|
||||||
$this->namespaced(function()
|
$this->namespaced(function(Router $router)
|
||||||
{
|
{
|
||||||
require app_path().'/Http/routes.php';
|
require app_path().'/Http/routes.php';
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue