mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Updated validation for nullable integers
This commit is contained in:
parent
112ee3c8ff
commit
a369a111e0
|
@ -28,9 +28,9 @@ class Accessory extends SnipeModel
|
|||
'name' => 'required|min:3|max:255',
|
||||
'qty' => 'required|integer|min:1',
|
||||
'category_id' => 'required|integer',
|
||||
'company_id' => 'integer',
|
||||
'company_id' => 'integer|nullable',
|
||||
'min_amt' => 'integer|min:0',
|
||||
'purchase_cost' => 'numeric',
|
||||
'purchase_cost' => 'numeric|nullable',
|
||||
);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue