From 58a98efb86c0c0a819e333a52eccf2a7de652f15 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 24 Jun 2020 12:47:56 -0500 Subject: [PATCH] tweak route provider default settings --- app/Providers/RouteServiceProvider.php | 39 ++------------------------ 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index ecac4445..c79bbdf4 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -7,18 +7,11 @@ class RouteServiceProvider extends ServiceProvider { - /** - * This namespace is applied to your controller routes. - * - * In addition, it is set as the URL generator's root namespace. - * - * @var string - */ - protected $namespace = 'App\Http\Controllers'; - /** * The path to the "home" route for your application. * + * Used by Laravel's authentication services to properly redirect users. + * * @var string */ public const HOME = '/home'; @@ -39,40 +32,12 @@ public function boot() * @return void */ public function map() - { - $this->mapApiRoutes(); - - $this->mapWebRoutes(); - - // - } - - /** - * Define the "web" routes for the application. - * - * These routes all receive session state, CSRF protection, etc. - * - * @return void - */ - protected function mapWebRoutes() { Route::middleware('web') - ->namespace($this->namespace) ->group(base_path('routes/web.php')); - } - /** - * Define the "api" routes for the application. - * - * These routes are typically stateless. - * - * @return void - */ - protected function mapApiRoutes() - { Route::prefix('api') ->middleware('api') - ->namespace($this->namespace) ->group(base_path('routes/api.php')); } }