P
Size: a a a
P
И
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in field list is ambiguous (SQL: select `id` from `ss_products` inner join `ss_brands` on `ss_brands`.`id` = `ss_products`.`brand_id` where `ss_brands`.`name` in (Nike, Adidas))
P
P
VY
@foreach ($zones as $zone)но выводит все модели...
@dd($zone->report)
И
P
P
P
И
P
@foreach ($zones as $zone)но выводит все модели...
@dd($zone->report)
VY
P
SP
VY
P
S
VY
return Zone::with(['report.region', 'landfills', 'vehicles', 'auto_park', 'checks', 'media'])может в нем и нет $zone->report...
->whereIn('id', $zones)
->paginate(25);
S
P
return Zone::with(['report.region', 'landfills', 'vehicles', 'auto_park', 'checks', 'media'])может в нем и нет $zone->report...
->whereIn('id', $zones)
->paginate(25);