From 62c55553cc4ff7fd2667f22e1ea0e82f45924881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9opold=20Gu=C3=A9rin?= Date: Mon, 27 Sep 2021 12:32:40 +0200 Subject: [PATCH 1/2] Evol to permit 2 decimals quanity (Crypto currency purposes) --- src/Darryldecode/Cart/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Darryldecode/Cart/Cart.php b/src/Darryldecode/Cart/Cart.php index 503dce7..11e593a 100644 --- a/src/Darryldecode/Cart/Cart.php +++ b/src/Darryldecode/Cart/Cart.php @@ -699,7 +699,7 @@ protected function validate($item) $rules = array( 'id' => 'required', 'price' => 'required|numeric', - 'quantity' => 'required|numeric|min:0.1', + 'quantity' => 'required|numeric|min:0.01', 'name' => 'required', ); From 11b949e11a3e07847ebd058be86ce8dd3ef3595c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9opold=20Gu=C3=A9rin?= Date: Thu, 30 Sep 2021 16:57:33 +0200 Subject: [PATCH 2/2] Min 3 decimals is better ... --- src/Darryldecode/Cart/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Darryldecode/Cart/Cart.php b/src/Darryldecode/Cart/Cart.php index 11e593a..152dd8a 100644 --- a/src/Darryldecode/Cart/Cart.php +++ b/src/Darryldecode/Cart/Cart.php @@ -699,7 +699,7 @@ protected function validate($item) $rules = array( 'id' => 'required', 'price' => 'required|numeric', - 'quantity' => 'required|numeric|min:0.01', + 'quantity' => 'required|numeric|min:0.001', 'name' => 'required', );