From 0749372f344c4758589d31059b9b59c783608649 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 4 Jan 2020 17:25:44 +0800 Subject: [PATCH] update --- app/Http/Requests/Admin/ConfigSave.php | 33 +------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/app/Http/Requests/Admin/ConfigSave.php b/app/Http/Requests/Admin/ConfigSave.php index f7905c84..d0aa4e44 100755 --- a/app/Http/Requests/Admin/ConfigSave.php +++ b/app/Http/Requests/Admin/ConfigSave.php @@ -7,38 +7,7 @@ use Illuminate\Foundation\Http\FormRequest; class ConfigSave extends FormRequest { public static function filter() { - return [ - 'invite_force', - 'invite_commission', - 'invite_gen_limit', - 'invite_never_expire', - 'stop_register', - 'email_verify', - 'app_name', - 'app_url', - 'subscribe_url', - 'plan_update_fee', - 'plan_is_update', - // server - 'server_token', - // alipay - 'alipay_enable', - 'alipay_appid', - 'alipay_pubkey', - 'alipay_privkey', - // stripe - 'stripe_sk_live', - 'stripe_pk_live', - 'stripe_alipay_enable', - 'stripe_wepay_enable', - 'stripe_webhook_key', - // bitpayx, - 'bitpayx_enable', - 'bitpayx_appsecret', - // tutorial - 'apple_id', - 'apple_id_password' - ]; + return array_keys($this->rules()); } /** * Get the validation rules that apply to the request.