Let router be inherited by route script.

This commit is contained in:
Taylor Otwell 2014-09-24 09:49:21 -05:00
parent 076d86bf26
commit 692c9667c7
2 changed files with 3 additions and 2 deletions

View File

@ -11,4 +11,4 @@
|
*/
Route::get('/', 'HomeController@index');
$router->get('/', 'HomeController@index');

View File

@ -1,5 +1,6 @@
<?php namespace App\Providers;
use Illuminate\Routing\Router;
use Illuminate\Contracts\Routing\UrlGenerator;
use Illuminate\Routing\RouteServiceProvider as ServiceProvider;
@ -32,7 +33,7 @@ public function map()
// Once the application has booted, we will include the default routes
// file. This "namespace" helper will load the routes file within a
// route group which automatically sets the controller namespace.
$this->namespaced(function()
$this->namespaced(function(Router $router)
{
require app_path().'/Http/routes.php';
});