fix user plan not nullable

This commit is contained in:
Tokumeikoi 2020-03-02 15:08:37 +08:00
parent 3c78bed800
commit c28a6ec1d3

View File

@ -12,7 +12,7 @@ class UserUpdate extends FormRequest
'transfer_enable' => 'numeric',
'expired_at' => 'integer',
'enable' => 'required|in:0,1',
'plan_id' => 'nullableinteger',
'plan_id' => 'nullable|integer',
'commission_rate' => 'nullable|integer|min:0|max:100',
'discount' => 'nullable|integer|min:0|max:100',
'is_admin' => 'required|in:0,1',