Commit 8780949b authored by Taylor Otwell's avatar Taylor Otwell

Make route loading a little more explicit.

parent f248da36
...@@ -30,11 +30,15 @@ class RouteServiceProvider extends ServiceProvider { ...@@ -30,11 +30,15 @@ class RouteServiceProvider extends ServiceProvider {
/** /**
* 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');
});
} }
} }
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