Skip to content

Commit

Permalink
Fixed runtime error for when facade root not set. (#16775)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashley Meadows authored and taylorotwell committed Dec 14, 2016
1 parent 2de0ace commit c79269b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Illuminate\Foundation\Support\Providers;

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Routing\UrlGenerator;

Expand Down Expand Up @@ -31,7 +30,7 @@ public function boot()
$this->loadRoutes();

$this->app->booted(function () {
Route::getRoutes()->refreshNameLookups();
$this->app['router']->getRoutes()->refreshNameLookups();
});
}
}
Expand Down

0 comments on commit c79269b

Please sign in to comment.