From b3e5c85dc53368b6a752c1a3809b2e0099d872a0 Mon Sep 17 00:00:00 2001 From: Nikola <103579024+ilokan@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:09:30 +0200 Subject: [PATCH] Update web.php --- routes/web.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index 15508ce8d..2215b26fd 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,8 +15,9 @@ // 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