From 0dd237398f71d5658277907574e824dcb9d6d38e Mon Sep 17 00:00:00 2001 From: Christomaadorp <102978402+Christomaadorp@users.noreply.github.com> Date: Fri, 22 Sep 2023 14:58:22 +0200 Subject: [PATCH] Update web.php --- routes/web.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 15508ce8d..fa66d79cb 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,7 +15,9 @@ // Task 1: point the main "/" URL to the HomeController method "index" // Put one code line here below - +Route::get('/', function() { + return view('welcome'); +}); // 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