Skip to content

Commit 8780949

Browse files
committed
Make route loading a little more explicit.
1 parent f248da3 commit 8780949

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/Providers/RouteServiceProvider.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ public function boot(Router $router)
3030
/**
3131
* Define the routes for the application.
3232
*
33+
* @param \Illuminate\Routing\Router $router
3334
* @return void
3435
*/
35-
public function map()
36+
public function map(Router $router)
3637
{
37-
$this->loadRoutesFrom(app_path('Http/routes.php'));
38+
$router->group(['namespace' => $this->namespace], function()
39+
{
40+
require app_path('Http/routes.php');
41+
});
3842
}
3943

4044
}

0 commit comments

Comments
 (0)