Skip to content

Commit

Permalink
T3 Update UserController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
imtyaz-17 authored Jul 4, 2024
1 parent 6335f6f commit 55d29e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function index()

public function show($userId)
{
$user = NULL; // TASK: find user by $userId or show "404 not found" page
$user = findOrFail($userId); // TASK: find user by $userId or show "404 not found" page

return view('users.show', compact('user'));
}
Expand Down

0 comments on commit 55d29e9

Please sign in to comment.