我想像这样从数据库中提取数据
[0] => stdClass Object
(
[id] => 6
[parts_brand] => 1
[car_make] => 19
[year_range] => 2000-2002
[category] => 1
[sale_price] => 234
[statement] => <p>deneme</p>
[piece] => 12
images => array(
[0] => frontend/assets/img/parts/2019-11-11-13-26-45-4.jpeg
[1] => frontend/assets/img/parts/thumb/2019-11-11-13-26-45-4_thumb.jpeg
[2] => frontend/assets/img/parts/2019-11-11-13-26-45-3.jpeg
[3] => frontend/assets/img/parts/thumb/2019-11-11-13-26-45-3_thumb.jpeg
)
)
但是它通过这种方式吸引了它:
[0] => stdClass Object
(
[id] => 6
[serial_number] => deneme
[part_name] => Fren Diski
[parts_brand] => 1
[car_make] => 19
[year_range] => 2000-2002
[category] => 1
[sale_price] => 234
[statement] => <p>deneme</p>
[piece] => 12
[image] => frontend/assets/img/parts/2019-11-11-13-26-45-4.jpeg
[thumb] => frontend/assets/img/parts/thumb/2019-11-11-13-26-45-4_thumb.jpeg
)
[1] => stdClass Object
(
[id] => 6
[serial_number] => deneme
[part_name] => Fren Diski
[parts_brand] => 1
[car_make] => 19
[year_range] => 2000-2002
[category] => 1
[sale_price] => 234
[statement] => <p>deneme</p>
[piece] => 12
[image] => frontend/assets/img/parts/2019-11-11-13-26-45-3.jpeg
[thumb] => frontend/assets/img/parts/thumb/2019-11-11-13-26-45-3_thumb.jpeg
)
我是laravel的新手。尝试学习。谢谢大家。