This commit is contained in:
2025-04-25 17:17:06 +08:00
parent 907490a4a5
commit 7d0d4c1594
+1 -1
View File
@@ -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);