diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index f179855..7699545 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -16,7 +16,7 @@ public function index() // GET /user/{id} public function show(string $id) { - $user = User::query()->findOrFail('id', $id); + $user = User::query()->findOrFail($id); return response($user); }