->acceptJson()
->withToken(Cookie::get('bearer_token'))
->attachIf(
$request->hasFile('cover'), 'cover',
$request->file('cover')?->getContent(),
$request->file('cover')?->getClientOriginalName()
)
->attachManyFromRequest()
->post("/user/sets/$set_id", SetService::getUpdatingOrCreationData())
SetService::getUpdatingOrCreationData() что возвращает?
array:17 [▼ "description[ru]" => "2121" "description[kz]" => "12" "games[0]" => "1" "prices[0][days_count]" => "1" "prices[0][price]" => "222" "prices[0][old_price]" => "222" "prices[0][bonus]" => "222" "prices[1][days_count]" => "2" "prices[1][price]" => "222" "prices[1][old_price]" => "222" "prices[1][bonus]" => "222" "name" => "12" "quantity" => "21" "category_id" => "2" "subproducts[0][id]" => "3" "subproducts[0][name]" => "Play Station 4" "subproducts[0][quantity]" => "3" ]
Обсуждают сегодня