Browse Source

Merge pull request #3221 from billmn/patch-1

[5.0] Allow to use $router in routes file
Taylor Otwell 9 years ago
parent
commit
86b0ae0896
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Providers/RouteServiceProvider.php

+ 1 - 1
app/Providers/RouteServiceProvider.php

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