From 4ab7112988635c4044140e78bb5c806adf1ecf76 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 28 Feb 2024 11:08:47 +0000 Subject: [PATCH] Added validation and fillable attributes for min_amt Signed-off-by: snipe --- app/Models/License.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Models/License.php b/app/Models/License.php index 2ea10939fa..7fb4f9e4cb 100755 --- a/app/Models/License.php +++ b/app/Models/License.php @@ -53,6 +53,7 @@ class License extends Depreciable 'purchase_date' => 'date_format:Y-m-d|nullable|max:10', 'expiration_date' => 'date_format:Y-m-d|nullable|max:10', 'termination_date' => 'date_format:Y-m-d|nullable|max:10', + 'min_amt' => 'numeric|nullable|gte:0', ]; /** @@ -81,6 +82,7 @@ class License extends Depreciable 'supplier_id', 'termination_date', 'user_id', + 'min_amt', ]; use Searchable;