-
-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
Description
Hi I started trying to use your package in my application. Thanks.
I would like that when linking the model:
LaraCart::add($product-> id, $product->name,1, $product->price, $cart['options'])->setModel(Product::class);
the currently added item to the cart was returned to us, but this does not happen since setModel () returns null.
Why you need to do a similar design
$cart = LaraCart::add($product-> id, $product->name,1, $product->price, $cart['options'])->setModel(Product::class);
$cart->setModel(Product::class);
Thanks
Reactions are currently unavailable