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