app/Http/Requests/Admin/ConfigSave.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'safe_mode_enable' => 'in:0,1',
            'invite_force' => 'in:0,1',
            'invite_commission' => 'integer',
            'invite_gen_limit' => 'integer',
            'invite_never_expire' => 'in:0,1',
            'commission_first_time_enable' => 'in:0,1',
            'commission_auto_check_enable' => 'in:0,1',
            'commission_withdraw_limit' => 'nullable|numeric',
            'commission_withdraw_method' => 'nullable|array',
            'withdraw_close_enable' => 'in:0,1',
            'commission_distribution_enable' => 'in:0,1',
            'commission_distribution_l1' => 'nullable|numeric',
            'commission_distribution_l2' => 'nullable|numeric',
            'commission_distribution_l3' => 'nullable|numeric',
            'stop_register' => 'in:0,1',
            'email_verify' => 'in:0,1',
            'app_name' => '',
            'app_description' => '',
            'app_url' => 'nullable|url',
            'subscribe_url' => 'nullable',
            'try_out_enable' => 'in:0,1',
            'try_out_plan_id' => 'integer',
            'try_out_hour' => 'numeric',
            'email_whitelist_enable' => 'in:0,1',
            'email_whitelist_suffix' => 'nullable|array',
            'email_gmail_limit_enable' => 'in:0,1',
            'recaptcha_enable' => 'in:0,1',
            'recaptcha_key' => '',
            'recaptcha_site_key' => '',
            'tos_url' => 'nullable|url',
            'currency' => '',
            'currency_symbol' => '',
            'plan_change_enable' => 'in:0,1',
            'reset_traffic_method' => 'in:0,1,2',
            'surplus_enable' => 'in:0,1',
            'new_order_event_id' => 'in:0,1',
            'renew_order_event_id' => 'in:0,1',
            'change_order_event_id' => 'in:0,1',
            'server_token' => 'nullable|min:16',
            'server_license' => 'nullable',
            'server_log_enable' => 'in:0,1',
            'server_v2ray_domain' => '',
            'server_v2ray_protocol' => '',
            'alipay_enable' => 'in:0,1',
            'alipay_appid' => 'nullable|integer|min:16',
            'alipay_pubkey' => 'max:2048',
            'alipay_privkey' => 'max:2048',
            'stripe_alipay_enable' => 'in:0,1',
            'stripe_wepay_enable' => 'in:0,1',
            'stripe_card_enable' => 'in:0,1',
            'stripe_sk_live' => '',
            'stripe_pk_live' => '',
            'stripe_webhook_key' => '',
            'stripe_currency' => 'in:hkd,usd,sgd,eur,gbp,jpy,cad',
            'bitpayx_name' => '',
            'bitpayx_enable' => 'in:0,1',
            'bitpayx_appsecret' => '',
            'mgate_name' => '',
            'mgate_enable' => 'in:0,1',
            'mgate_url' => 'nullable|url',
            'mgate_app_id' => '',
            'mgate_app_secret' => '',
            'epay_name' => '',
            'epay_enable' => 'in:0,1',
            'epay_url' => 'nullable|url',
            'epay_pid' => '',
            'epay_key' => '',
            'frontend_theme' => '',
            'frontend_theme_sidebar' => 'in:dark,light',
            'frontend_theme_header' => 'in:dark,light',
            'frontend_theme_color' => 'in:default,darkblue,black,green',
            'frontend_background_url' => 'nullable|url',
            'frontend_admin_path' => '',
            'frontend_customer_service_method' => '',
            'frontend_customer_service_id' => '',
            'email_template' => '',
            'email_host' => '',
            'email_port' => '',
            'email_username' => '',
            'email_password' => '',
            'email_encryption' => '',
            'email_from_address' => '',
            'telegram_bot_enable' => 'in:0,1',
            'telegram_bot_token' => '',
            'telegram_discuss_id' => '',
            'telegram_channel_id' => '',
            'telegram_discuss_link' => 'nullable|url',
            'windows_version' => '',
            'windows_download_url' => '',
            'macos_version' => '',
            'macos_download_url' => '',
            'android_version' => '',
            'android_download_url' => ''
        ];
    }
public function rules ( ) { return [ 'safe_mode_enable' => 'in:0,1' , 'invite_force' => 'in:0,1' , 'invite_commission' => 'integer' , 'invite_gen_limit' => 'integer' , 'invite_never_expire' => 'in:0,1' , 'commission_first_time_enable' => 'in:0,1' , 'commission_auto_check_enable' => 'in:0,1' , 'commission_withdraw_limit' => 'nullable|numeric' , 'commission_withdraw_method' => 'nullable|array' , 'withdraw_close_enable' => 'in:0,1' , 'commission_distribution_enable' => 'in:0,1' , 'commission_distribution_l1' => 'nullable|numeric' , 'commission_distribution_l2' => 'nullable|numeric' , 'commission_distribution_l3' => 'nullable|numeric' , 'stop_register' => 'in:0,1' , 'email_verify' => 'in:0,1' , 'app_name' => '' , 'app_description' => '' , 'app_url' => 'nullable|url' , 'subscribe_url' => 'nullable' , 'try_out_enable' => 'in:0,1' , 'try_out_plan_id' => 'integer' , 'try_out_hour' => 'numeric' , 'email_whitelist_enable' => 'in:0,1' , 'email_whitelist_suffix' => 'nullable|array' , 'email_gmail_limit_enable' => 'in:0,1' , 'recaptcha_enable' => 'in:0,1' , 'recaptcha_key' => '' , 'recaptcha_site_key' => '' , 'tos_url' => 'nullable|url' , 'currency' => '' , 'currency_symbol' => '' , 'plan_change_enable' => 'in:0,1' , 'reset_traffic_method' => 'in:0,1,2' , 'surplus_enable' => 'in:0,1' , 'new_order_event_id' => 'in:0,1' , 'renew_order_event_id' => 'in:0,1' , 'change_order_event_id' => 'in:0,1' , 'server_token' => 'nullable|min:16' , 'server_license' => 'nullable' , 'server_log_enable' => 'in:0,1' , 'server_v2ray_domain' => '' , 'server_v2ray_protocol' => '' , 'alipay_enable' => 'in:0,1' , 'alipay_appid' => 'nullable|integer|min:16' , 'alipay_pubkey' => 'max:2048' , 'alipay_privkey' => 'max:2048' , 'stripe_alipay_enable' => 'in:0,1' , 'stripe_wepay_enable' => 'in:0,1' , 'stripe_card_enable' => 'in:0,1' , 'stripe_sk_live' => '' , 'stripe_pk_live' => '' , 'stripe_webhook_key' => '' , 'stripe_currency' => 'in:hkd,usd,sgd,eur,gbp,jpy,cad' , 'bitpayx_name' => '' , 'bitpayx_enable' => 'in:0,1' , 'bitpayx_appsecret' => '' , 'mgate_name' => '' , 'mgate_enable' => 'in:0,1' , 'mgate_url' => 'nullable|url' , 'mgate_app_id' => '' , 'mgate_app_secret' => '' , 'epay_name' => '' , 'epay_enable' => 'in:0,1' , 'epay_url' => 'nullable|url' , 'epay_pid' => '' , 'epay_key' => '' , 'frontend_theme' => '' , 'frontend_theme_sidebar' => 'in:dark,light' , 'frontend_theme_header' => 'in:dark,light' , 'frontend_theme_color' => 'in:default,darkblue,black,green' , 'frontend_background_url' => 'nullable|url' , 'frontend_admin_path' => '' , 'frontend_customer_service_method' => '' , 'frontend_customer_service_id' => '' , 'email_template' => '' , 'email_host' => '' , 'email_port' => '' , 'email_username' => '' , 'email_password' => '' , 'email_encryption' => '' , 'email_from_address' => '' , 'telegram_bot_enable' => 'in:0,1' , 'telegram_bot_token' => '' , 'telegram_discuss_id' => '' , 'telegram_channel_id' => '' , 'telegram_discuss_link' => 'nullable|url' , 'windows_version' => '' , 'windows_download_url' => '' , 'macos_version' => '' , 'macos_download_url' => '' , 'android_version' => '' , 'android_download_url' => '' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// invite & commission // site // subscribe // server // alipay // stripe // bitpayx // mGate // Epay // frontend // email // telegram // app