From fd5ab2472e17c8c8f05554d79b424ac003bcfb34 Mon Sep 17 00:00:00 2001 From: OhmygoodR <109280933+OhmygoodR@users.noreply.github.com> Date: Sun, 9 Jun 2024 23:04:38 +0800 Subject: [PATCH] Update web.php --- routes/web.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index 85deeddd..d89d89f7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -27,12 +27,12 @@ // Task: this "/secretpage" URL should be visible only for those who VERIFIED their email // Add some middleware here, and change some code in app/Models/User.php to enable this -Route::view('/secretpage', 'secretpage')->middleware(['auth','verified']); +Route::view('/secretpage', 'secretpage')->middleware(['auth','verified']) ->name('secretpage'); // Task: this "/verysecretpage" URL should ask user for verifying their password once again // You need to add some middleware here -Route::view('/verysecretpage', 'verysecretpage') +Route::view('/verysecretpage', 'verysecretpage')->middleware('password.confirm') ->name('verysecretpage'); require __DIR__.'/auth.php';