diff --git a/app/Models/AssetModel.php b/app/Models/AssetModel.php index 60ba29b490..7a66620916 100755 --- a/app/Models/AssetModel.php +++ b/app/Models/AssetModel.php @@ -29,8 +29,8 @@ class AssetModel extends SnipeModel // Declare the rules for the model validation protected $rules = [ - 'name' => 'required|min:1|max:255|unique:models,name', - 'model_number' => 'max:255|nullable', + 'name' => 'string|required|min:1|max:255|unique:models,name', + 'model_number' => 'string|max:255|nullable', 'min_amt' => 'integer|min:0|nullable', 'category_id' => 'required|integer|exists:categories,id', 'manufacturer_id' => 'integer|exists:manufacturers,id|nullable',