storage url o'zgartirildi
This commit is contained in:
@@ -36,8 +36,10 @@ class Store
|
||||
|
||||
$map = array_map(function ($product) {
|
||||
return $product['id'];
|
||||
}, $this->request->products);
|
||||
}, $this->request->products ?? []);
|
||||
|
||||
$compilation->products()->attach($map);
|
||||
if (!empty($map)) {
|
||||
$compilation->products()->attach($map);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user