Make route loading a little more explicit.
This commit is contained in:
@@ -30,11 +30,15 @@ class RouteServiceProvider extends ServiceProvider {
|
||||
/**
|
||||
* Define the routes for the application.
|
||||
*
|
||||
* @param \Illuminate\Routing\Router $router
|
||||
* @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');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user