From 7d0d4c15941d7a1ce106fcf79e05a57cc8dc7ec2 Mon Sep 17 00:00:00 2001 From: "HESU\\HESU" <1696136552@qq.com> Date: Fri, 25 Apr 2025 17:17:06 +0800 Subject: [PATCH] 1 --- app/controller/LocationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/LocationController.php b/app/controller/LocationController.php index 9e6ed82..e9e9381 100644 --- a/app/controller/LocationController.php +++ b/app/controller/LocationController.php @@ -18,8 +18,8 @@ class LocationController ->with('fboVehicles') ->get() ->map(function ($location) { - $location->fbo_vehicle_count = $location->fbo_vehicles->count(); $location->vehicle_count = $location->vehicles->count(); + $location->fbo_vehicle_count = $location->fboVehicles->count(); return $location; }); return Util::success($locations);