1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user