From 8772331868f6578ae983a6a1bf4ad2405528c498 Mon Sep 17 00:00:00 2001 From: NoAvatar Date: Fri, 18 Oct 2024 01:34:22 +1000 Subject: [PATCH] Hotfix Show() findOrFail arguments --- app/Http/Controllers/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }