Fix twofaccounts count not being returned

This commit is contained in:
Bubka 2024-04-25 17:00:32 +02:00
parent 6b96fced3d
commit bc89760e74

View File

@ -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());
}
/**