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);