array:4 [▼
0 => array:2 [▼
"id" => "4"
"count" => 3
]
1 => array:2 [▶]
2 => array:2 [▶]
3 => array:2 [▶]
]
"4"
[]
if (count($carts) > 0) {
$key = array_keys($carts, $id);
dd($carts, $id, $key);
public function addCartProduct(Request $request)
{
$carts = Cookie::get('cart');
$count = (int)$request->quantity;
$size = $request->size;
$id = $request->product_id;
050d105 HEAD@{22}: reset: moving to HEAD~1
fcf55bd HEAD@{23}: commit: add view/options
050d105 HEAD@{24}: Branch: renamed refs/heads/master to refs/heads/master
050d105 HEAD@{10}: reset: moving to HEAD
050d105 HEAD@{11}: Branch: renamed refs/heads/master-2 to refs/heads/master
050d105 HEAD@{13}: reset: moving to HEAD
050d105 HEAD@{14}: Branch: renamed refs/heads/master to refs/heads/master-2
050d105 HEAD@{16}: Branch: renamed refs/heads/master-2 to refs/heads/master
050d105 HEAD@{18}: Branch: renamed refs/heads/master to refs/heads/master-2
050d105 HEAD@{20}: Branch: renamed refs/heads/master to refs/heads/master
050d105 HEAD@{22}: reset: moving to HEAD~1
fcf55bd HEAD@{23}: commit: add view/options
050d105 HEAD@{24}: Branch: renamed refs/heads/master to refs/heads/master
мне нужно примерно так
таблица товары
таблица размеры
это примерно
сделаны checkbox из которых приходят id.
Как можно если выбрать например два или три checkbox, вывести товар который принадлежит этому размеру????