File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ 1.4.2] - 2020-02-13
8+ ### Added
9+ - New method cartItemQuantitySet() to update quantity of a cart item directly.
10+
711## [ 1.4.1] - 2020-12-11
812### Added
913- Support for PHP 8
Original file line number Diff line number Diff line change @@ -199,6 +199,20 @@ public function decrementCartItem()
199199}
200200```
201201
202+ ### Update user input quantity of a cart item
203+ ```
204+ /**
205+ * Update user input quantity.
206+ *
207+ * @return json
208+ */
209+ public function cartItemQuantitySet()
210+ {
211+ return cart()->setQuantityAt(request('cartItemIndex'), request('cartQuantity'));
212+ }
213+
214+ ```
215+
202216### Clear cart
203217```
204218/**
You can’t perform that action at this time.
0 commit comments