Make route loading a little more explicit.

This commit is contained in:
Taylor Otwell 2015-01-20 16:08:56 -06:00
parent f248da36c3
commit 8780949bec
1 changed files with 6 additions and 2 deletions

View File

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