Skip to content

Commit

Permalink
Update web.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Christomaadorp authored Sep 22, 2023
1 parent 7313d34 commit 0dd2373
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0dd2373

Please sign in to comment.