From cfd345f7391c8263686c9893f76377e79a0db697 Mon Sep 17 00:00:00 2001 From: "noah.lancien" Date: Thu, 6 Apr 2023 07:40:08 +0000 Subject: [PATCH] Move "/" route to middleware auth:web --- routes/web.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index c80e16e..28e1ef5 100644 --- a/routes/web.php +++ b/routes/web.php @@ -32,8 +32,6 @@ use Illuminate\Support\Facades\Route; | */ -Route::get('/', [HomeController::class, 'home'])->middleware('guest')->name('home'); - Route::middleware(['throttle:credentials'])->group(function () { // * guest:web middleware specified in AuthController Auth::routes([ @@ -58,6 +56,8 @@ Route::get('/ping', function () { })->withoutMiddleware('auth'); Route::middleware('auth:web')->group(function () { + // * Home + Route::get('/', [HomeController::class, 'home'])->name('home'); // * Macro planning Route::get('/macroplanning', [ScheduleMacroController::class, 'show'])->name('macroplanning.show');