JavaScript
- 17 ответов
- 0 вопросов
20
Вклад в тег
->orderBy('image_region.id', 'asc')
select `images`.*, `image_region`.`region_id` as `pivot_region_id`, `image_region`.`image_id` as `pivot_image_id` from `images` inner join `image_region` on `images`.`id` = `image_region`.`image_id` where `image_region`.`region_id` = 1 order by `image_region`.`id` ASC