Commit 82cf2052 authored by Davide Bellini's avatar Davide Bellini

Allow to use $router in routes file

parent 8780949b
...@@ -35,7 +35,7 @@ class RouteServiceProvider extends ServiceProvider { ...@@ -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');
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment