Small model validations

This commit is contained in:
snipe 2016-12-15 15:15:26 -08:00
parent cf2b57cb15
commit e5286229e0
2 changed files with 1 additions and 2 deletions

View file

@ -52,7 +52,7 @@ class Asset extends Depreciable
'model_id' => 'required|integer',
'status_id' => 'required|integer',
'company_id' => 'integer|nullable',
'warranty_months' => 'numeric|max:240|nullable',
'warranty_months' => 'numeric|nullable',
'physical' => 'numeric|max:1|nullable',
'checkout_date' => 'date|max:10|min:10|nullable',
'checkin_date' => 'date|max:10|min:10|nullable',

View file

@ -17,7 +17,6 @@ class Location extends SnipeModel
protected $rules = array(
'name' => 'required|min:2|max:255|unique_undeleted',
'city' => 'min:3|max:255|nullable',
'state' => 'max:2|nullable',
'country' => 'min:2|max:2|nullable',
'address' => 'max:80|nullable',
'address2' => 'max:80|nullable',