From f753783ca0c34d172ad92d787e7cf4a7748d496f Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 22 Jun 2016 12:50:21 -0700 Subject: [PATCH] Smaller miminums for model and category name --- app/Models/AssetModel.php | 2 +- app/Models/Category.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/AssetModel.php b/app/Models/AssetModel.php index 3e8becdf4b..dec9244d9a 100755 --- a/app/Models/AssetModel.php +++ b/app/Models/AssetModel.php @@ -19,7 +19,7 @@ class AssetModel extends Model // Declare the rules for the model validation protected $rules = array( - 'name' => 'required|min:2|max:255', + 'name' => 'required|min:1|max:255', 'modelno' => 'min:1|max:255', 'category_id' => 'required|integer', 'manufacturer_id' => 'required|integer', diff --git a/app/Models/Category.php b/app/Models/Category.php index a811bec4c8..0cd4f84d39 100755 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -25,7 +25,7 @@ class Category extends Model */ public $rules = array( 'user_id' => 'numeric', - 'name' => 'required|min:3|max:255|unique:categories,name,NULL,deleted_at', + 'name' => 'required|min:1|max:255|unique:categories,name,NULL,deleted_at', 'category_type' => 'required', );