mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Make model number nullable
This commit is contained in:
parent
626a6408d0
commit
998c4a5fe5
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue