Skip to content

Commit

Permalink
Update web.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuelbett67 authored Nov 5, 2024
1 parent 7313d34 commit e2950eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HomeController;

/*
|--------------------------------------------------------------------------
Expand All @@ -15,7 +16,7 @@

// 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
Expand Down

0 comments on commit e2950eb

Please sign in to comment.