More nullables

This commit is contained in:
snipe 2016-12-14 09:58:12 -08:00
parent 37c847ea08
commit 91fe136fd3

View file

@ -51,11 +51,11 @@ class Asset extends Depreciable
'name' => 'min:2|max:255', 'name' => 'min:2|max:255',
'model_id' => 'required|integer', 'model_id' => 'required|integer',
'status_id' => 'required|integer', 'status_id' => 'required|integer',
'company_id' => 'integer', 'company_id' => 'integer|nullable',
'warranty_months' => 'numeric|max:240|nullable', 'warranty_months' => 'numeric|max:240|nullable',
'physical' => 'numeric|max:1|nullable', 'physical' => 'numeric|max:1|nullable',
'checkout_date' => 'date|max:10|min:10', 'checkout_date' => 'date|max:10|min:10|nullable',
'checkin_date' => 'date|max:10|min:10', 'checkin_date' => 'date|max:10|min:10|nullable',
'supplier_id' => 'numeric|nullable', 'supplier_id' => 'numeric|nullable',
'asset_tag' => 'required|min:1|max:255|unique_undeleted', 'asset_tag' => 'required|min:1|max:255|unique_undeleted',
'status' => 'integer', 'status' => 'integer',