More nullables
This commit is contained in:
parent
37c847ea08
commit
91fe136fd3
1 changed files with 3 additions and 3 deletions
|
@ -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',
|
||||||
|
|
Loading…
Add table
Reference in a new issue