1
This commit is contained in:
@@ -18,8 +18,8 @@ class LocationController
|
|||||||
->with('fboVehicles')
|
->with('fboVehicles')
|
||||||
->get()
|
->get()
|
||||||
->map(function ($location) {
|
->map(function ($location) {
|
||||||
$location->fbo_vehicle_count = $location->fbo_vehicles->count();
|
|
||||||
$location->vehicle_count = $location->vehicles->count();
|
$location->vehicle_count = $location->vehicles->count();
|
||||||
|
$location->fbo_vehicle_count = $location->fboVehicles->count();
|
||||||
return $location;
|
return $location;
|
||||||
});
|
});
|
||||||
return Util::success($locations);
|
return Util::success($locations);
|
||||||
|
|||||||
Reference in New Issue
Block a user