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 {
/**
* Define the routes for the application.
*
* @param \Illuminate\Routing\Router $router
* @return void
*/
public function map()
public function map(Router $router)
{
$router->group(['namespace' => $this->namespace], function()
{
$this->loadRoutesFrom(app_path('Http/routes.php'));
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