1
This commit is contained in:
@@ -60,6 +60,7 @@ class LocationController
|
||||
|
||||
$locations = Location::with('vehicles')
|
||||
->with('fboVehicles')
|
||||
->where(['type' => 'production'])
|
||||
->whereIn('id',$locations_id)
|
||||
->get()
|
||||
->map(function ($location) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user