From e38a539f70bf36c08b47eb7e568a1c57999bf504 Mon Sep 17 00:00:00 2001 From: Wen Xuan Goh Date: Thu, 17 Oct 2024 16:43:42 +0800 Subject: [PATCH] laravel-tests --- routes/web.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/routes/web.php b/routes/web.php index 76726038..60018316 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,12 +1,11 @@ name('about'); +Route::view('/about', 'pages.about')->name('about'); // Task 4: redirect the GET URL "log-in" to a URL "login" // Put one code line here below @@ -75,11 +74,11 @@ // Task 10: point URL /admin/dashboard to a "Single Action" Admin/DashboardController // Put one code line here below - Route::view('/dashboard', [AdminDashboardController::class]); + Route::get('/dashboard', [AdminDashboardController::class]); // Task 11: point URL /admin/stats to a "Single Action" Admin/StatsController // Put one code line here below - Route::view('/stats', [AdminStatsController::class]); + Route::get('/stats', [StatsController::class]); }); // End of the /admin Route Group