Skip to content

Commit

Permalink
'usercontroller'
Browse files Browse the repository at this point in the history
  • Loading branch information
poljak07 committed Aug 13, 2024
1 parent 95fe5d1 commit b2a4172
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 @@ -26,7 +26,7 @@ public function index()

public function show($userId)
{
$user = User::findOrFail($userId);
$user = User::whereId($userId)->firstOrFail();

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

0 comments on commit b2a4172

Please sign in to comment.