We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when try to add product to card using this method
public function addProduct(Request $request) { $product = Product::findOrFail($request->product_id); $data = [ 'id' => $product->id, 'name' => $product->name, 'price' => $product->price, 'quantity' => $request->quantity, 'attributes' => [ 'image' => $product->image, ], ]; Cart::add($data); // Add the new item to the cart $cartContent = Cart::getContent(); // Retrieve the updated cart content dd($cartContent->toArray()); // Display the updated cart
and try to add another product and make
$cartContent = Cart::getContent(); // Retrieve the updated cart content dd($cartContent->toArray()); // Display the updated cart
its return last item added only not all product in cart !
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when try to add product to card using this method
and try to add another product and make
its return last item added only not all product in cart !
The text was updated successfully, but these errors were encountered: