我有兩個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"
]
}