Make model number nullable

This commit is contained in:
snipe 2017-09-22 04:43:28 -07:00
parent 626a6408d0
commit 998c4a5fe5

View file

@ -26,7 +26,7 @@ class AssetModel extends SnipeModel
// Declare the rules for the model validation // Declare the rules for the model validation
protected $rules = array( protected $rules = array(
'name' => 'required|min:1|max:255', 'name' => 'required|min:1|max:255',
'model_number' => 'min:1|max:255', 'model_number' => 'max:255|nullable',
'category_id' => 'required|integer|exists:categories,id', 'category_id' => 'required|integer|exists:categories,id',
'manufacturer_id' => 'required|integer|exists:manufacturers,id', 'manufacturer_id' => 'required|integer|exists:manufacturers,id',
'eol' => 'integer:min:0|max:240|nullable', 'eol' => 'integer:min:0|max:240|nullable',