From b230500955536dac31c9074ab73a79eb1c7536af Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 20 Oct 2020 15:11:54 -0500 Subject: [PATCH] Revert "Change loadRoutesFrom to accept $attributes (#34866)" This reverts commit e7192501032a910865fd6be42c66c757ae31ca35. --- src/Illuminate/Support/ServiceProvider.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; } }