Merge pull request #3221 from billmn/patch-1

[5.0] Allow to use $router in routes file
This commit is contained in:
Taylor Otwell
2015-01-22 16:49:32 -06:00

View File

@@ -35,7 +35,7 @@ class RouteServiceProvider extends ServiceProvider {
*/ */
public function map(Router $router) public function map(Router $router)
{ {
$router->group(['namespace' => $this->namespace], function() $router->group(['namespace' => $this->namespace], function($router)
{ {
require app_path('Http/routes.php'); require app_path('Http/routes.php');
}); });