diff --git a/app/controller/LocationController.php b/app/controller/LocationController.php index d2dce64..ebb220d 100644 --- a/app/controller/LocationController.php +++ b/app/controller/LocationController.php @@ -60,6 +60,7 @@ class LocationController $locations = Location::with('vehicles') ->with('fboVehicles') + ->where(['type' => 'production']) ->whereIn('id',$locations_id) ->get() ->map(function ($location) { diff --git a/app/controller/VehicleController.php b/app/controller/VehicleController.php index 5f73139..3bd8bc3 100644 --- a/app/controller/VehicleController.php +++ b/app/controller/VehicleController.php @@ -413,15 +413,12 @@ class VehicleController case 'zh': $vehicle = Vehicle::with('location')->find($id); break; - case 'en': $vehicle = VehicleEn::with('location')->find($id); break; - case 'ru': $vehicle = VehicleRu::with('location')->find($id); break; - case 'ar': $vehicle = VehicleAr::with('location')->find($id); break;