mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Small model validations
This commit is contained in:
parent
cf2b57cb15
commit
e5286229e0
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue