fix user plan not nullable

This commit is contained in:
Tokumeikoi 2020-03-02 15:05:43 +08:00
parent 72fb0d131d
commit 3c78bed800

View File

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