Make route loading a little more explicit.
This commit is contained in:
parent
f248da36c3
commit
8780949bec
|
@ -30,11 +30,15 @@ public function boot(Router $router)
|
||||||
/**
|
/**
|
||||||
* Define the routes for the application.
|
* Define the routes for the application.
|
||||||
*
|
*
|
||||||
|
* @param \Illuminate\Routing\Router $router
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function map()
|
public function map(Router $router)
|
||||||
{
|
{
|
||||||
$this->loadRoutesFrom(app_path('Http/routes.php'));
|
$router->group(['namespace' => $this->namespace], function()
|
||||||
|
{
|
||||||
|
require app_path('Http/routes.php');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue