Skip to content

Commit

Permalink
Merge pull request #296 from Leonigas/min_decimal_qty
Browse files Browse the repository at this point in the history
Change minimum validation to 0.1
  • Loading branch information
darryldecode authored Dec 18, 2020
2 parents 7f1581d + 6e11d21 commit 2ad23e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Darryldecode/Cart/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ protected function validate($item)
$rules = array(
'id' => 'required',
'price' => 'required|numeric',
'quantity' => 'required|numeric|min:1',
'quantity' => 'required|numeric|min:0.1',
'name' => 'required',
);

Expand Down

0 comments on commit 2ad23e0

Please sign in to comment.