We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92ab715 commit 8678a06Copy full SHA for 8678a06
src/Darryldecode/Cart/Cart.php
@@ -863,7 +863,9 @@ public function associate($model)
863
864
$item['associatedModel'] = $model;
865
866
- $cart->put($this->currentItemId, $item);
+ $cart->put($this->currentItemId, new ItemCollection($item, $this->config));
867
+
868
+ $this->save($cart);
869
870
return $this;
871
}
0 commit comments