Smaller miminums for model and category name

This commit is contained in:
snipe 2016-06-22 12:50:21 -07:00
parent 4ed8ff5576
commit f753783ca0
2 changed files with 2 additions and 2 deletions

View file

@ -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',

View file

@ -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',
);