我有两个Laravel集合。宓第一个系列叫做$ custom_product:合并字段laravel集合
Collection {#313 ▼
#items: array:1 [▼
0 => array:1 [▼
"custom_description" => "insert description here"
]
]
}
我有我的其他集合称为$ api_product:
Collection {#311 ▼
#items: array:29 [▼
"article_id" => 5570
"active" => null
"name" => "CORBATA POLIESTER"
"detail" => "- Pesa: 43 gr."
"constructor_name" => "gift"
"stock_available" => true
"stock" => null
"prices" => array:6 [▶]
"price_pvp" => 29.0
"size" => "1410X100"
]
}
我想这个结果。同样的集合,但与现场custom_description补充说:
Collection {#311 ▼
#items: array:29 [▼
"article_id" => 5570
"active" => null
"custom_description" => "insert description here"//add this field
"name" => "CORBATA POLIESTER"
"detail" => "- Pesa: 43 gr."
"constructor_name" => "gift"
"stock_available" => true
"stock" => null
"prices" => array:6 [▶]
"price_pvp" => 29.0
"size" => "1410X100"
]
}