Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
ec5731353a
1 changed files with 2 additions and 2 deletions
|
@ -29,8 +29,8 @@ class AssetModel extends SnipeModel
|
|||
|
||||
// Declare the rules for the model validation
|
||||
protected $rules = [
|
||||
'name' => 'required|min:1|max:255',
|
||||
'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',
|
||||
|
|
Loading…
Add table
Reference in a new issue