Allow to use $router in routes file

This commit is contained in:
Davide Bellini
2015-01-21 10:18:18 +01:00
parent 8780949bec
commit 82cf205242

View File

@@ -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');
});