diff --git a/src/Illuminate/Support/ServiceProvider.php b/src/Illuminate/Support/ServiceProvider.php index ed5fcb3b8a2f..1f361b1dc982 100755 --- a/src/Illuminate/Support/ServiceProvider.php +++ b/src/Illuminate/Support/ServiceProvider.php @@ -8,7 +8,6 @@ use Illuminate\Contracts\Foundation\CachesRoutes; use Illuminate\Contracts\Support\DeferrableProvider; use Illuminate\Database\Eloquent\Factory as ModelFactory; -use Illuminate\Support\Facades\Route; use Illuminate\View\Compilers\BladeCompiler; abstract class ServiceProvider @@ -137,14 +136,12 @@ protected function mergeConfigFrom($path, $key) * Load the given routes file if routes are not already cached. * * @param string $path - * @param array $attributes - * * @return void */ - protected function loadRoutesFrom($path, array $attributes = []) + protected function loadRoutesFrom($path) { if (! ($this->app instanceof CachesRoutes && $this->app->routesAreCached())) { - Route::group($attributes, $path); + require $path; } }