Skip to content

Commit 2ad23e0

Browse files
authored
Merge pull request #296 from Leonigas/min_decimal_qty
Change minimum validation to 0.1
2 parents 7f1581d + 6e11d21 commit 2ad23e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Darryldecode/Cart/Cart.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ protected function validate($item)
699699
$rules = array(
700700
'id' => 'required',
701701
'price' => 'required|numeric',
702-
'quantity' => 'required|numeric|min:1',
702+
'quantity' => 'required|numeric|min:0.1',
703703
'name' => 'required',
704704
);
705705

0 commit comments

Comments
 (0)