Updated validation for nullable integers

This commit is contained in:
snipe 2016-12-15 01:37:19 -08:00
parent 112ee3c8ff
commit a369a111e0

View file

@ -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',
);