From bc89760e74105a96733055857ca484c73e122c16 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:00:32 +0200 Subject: [PATCH] Fix twofaccounts count not being returned --- app/Api/v1/Controllers/UserManagerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Api/v1/Controllers/UserManagerController.php b/app/Api/v1/Controllers/UserManagerController.php index 779a6432..7a8ba4e0 100644 --- a/app/Api/v1/Controllers/UserManagerController.php +++ b/app/Api/v1/Controllers/UserManagerController.php @@ -23,7 +23,7 @@ class UserManagerController extends Controller */ public function index(Request $request) { - return UserManagerResource::collection(User::all()); + return UserManagerResource::collection(User::withCount('twofaccounts')->get()); } /**