Let router be inherited by route script.
This commit is contained in:
@@ -11,4 +11,4 @@
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/', 'HomeController@index');
|
||||
$router->get('/', 'HomeController@index');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php namespace App\Providers;
|
||||
|
||||
use Illuminate\Routing\Router;
|
||||
use Illuminate\Contracts\Routing\UrlGenerator;
|
||||
use Illuminate\Routing\RouteServiceProvider as ServiceProvider;
|
||||
|
||||
@@ -32,7 +33,7 @@ class RouteServiceProvider extends ServiceProvider {
|
||||
// Once the application has booted, we will include the default routes
|
||||
// file. This "namespace" helper will load the routes file within a
|
||||
// route group which automatically sets the controller namespace.
|
||||
$this->namespaced(function()
|
||||
$this->namespaced(function(Router $router)
|
||||
{
|
||||
require app_path().'/Http/routes.php';
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user