From b441fc3fc29282ae4bd8e4d0b78412579bb92b79 Mon Sep 17 00:00:00 2001 From: Nikola <103579024+ilokan@users.noreply.github.com> Date: Tue, 3 Oct 2023 12:49:20 +0200 Subject: [PATCH] Update web.php --- routes/web.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/web.php b/routes/web.php index 15508ce8d..91da473c6 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,18 +15,18 @@ // Task 1: point the main "/" URL to the HomeController method "index" // Put one code line here below - +Route::get('/', [HomeController::class, 'index']); // Task 2: point the GET URL "/user/[name]" to the UserController method "show" // It doesn't use Route Model Binding, it expects $name as a parameter // Put one code line here below - +Route::get('/user[name]',[UserController::class, 'show']); // Task 3: point the GET URL "/about" to the view // resources/views/pages/about.blade.php - without any controller // Also, assign the route name "about" // Put one code line here below - +Route::get('/about',function() {return view('resources/views/pages/about.blade.php'); })->name('about'); // Task 4: redirect the GET URL "log-in" to a URL "login" // Put one code line here below