public function rules(): array 	{ 		$caches = array_keys(config('cache.stores')); 		$queues = array_keys(config('queue.connections')); 		$filesystems = array_keys(config('filesystems.disks')); 		$sessions = ['file', 'cookie', 'database', 'apc', 'memcached', 'redis', 'dynamodb', 'array'];  		return [ 			'app_name' => ['required', 'string', 'max:50'], 			'app_scheme' => ['nullable', 'string', 'max:50'], 			'ios_min_version' => ['nullable', 'integer', 'min:1'], 			'android_min_version' => ['nullable', 'integer', 'min:1'], 			'app_description' => ['nullable', 'string', 'max:500'], 			'maintenance_active' => ['boolean'], 			'debug_mode_active' => ['boolean'], 			'currency_code' => ['required', 'string', 'size:3'], 			'google_api_key' => ['nullable', 'string', 'max:50'],  			'app_email' => ['nullable', 'email', 'max:50'], 			'noreply_email' => ['nullable', 'email', 'max:50'], 			'smtp_host' => ['nullable', 'string', 'max:100'], 			'smtp_port' => ['nullable', 'integer', 'min:1'], 			'smtp_username' => ['nullable', 'string', 'max:50'], 			'smtp_password' => ['nullable', 'string', 'max:100'], 			'smtp_protocol' => ['nullable', 'string', 'in:tls,ssl'],  			'timezone' => ['required', 'timezone'], 			'date_format' => ['required', 'string', 'max:15'], 			'time_format' => ['required', 'string', 'max:15'],  			'min_pass_len' => ['required', 'integer', 'min:1'], 			'pass_uppercase_char' => ['boolean'], 			'pass_numeric_char' => ['boolean'], 			'pass_special_char' => ['boolean'],  			'jwt_regenerate_secret_key' => ['boolean'], 			'jwt_expiration_time' => ['nullable', 'integer', 'min:1'],  			'media_storage' => ['required', 'string', Rule::in($filesystems)], 			'max_upload_size' => ['required', 'integer', 'min:1'], 			'max_media_length' => ['required', 'integer', 'min:1'], 			'thumb_width' => ['required', 'integer', 'min:1'], 			'responsive_images_breakpoints' => ['array'], 			'responsive_images_breakpoints.*' => ['required', 'integer', 'distinct', 'min:1'], 			'queue_media_conversions' => ['boolean'], 			'protected_media_token_valid_until' => ['required', 'integer', 'min:1'],  			'login_max_attempts' => ['required', 'integer', 'min:1'], 			'login_backoff_minutes' => ['required', 'integer', 'min:1'], 			'api_rate_limit' => ['required', 'integer', 'min:1'], 			'api_rate_limit_backoff_minutes' => ['required', 'integer', 'min:1'],  			'antivirus_active' => ['boolean'], 			'cors_allowed_origins' => ['array'], 			'cors_allowed_origins.*' => ['required', 'string', 'distinct', 'max:50'], 			'csp_allowed_scripts' => ['array'], 			'csp_allowed_scripts.*' => ['required', 'string', 'distinct', 'max:50'], 			'csp_allowed_styles' => ['array'], 			'csp_allowed_styles.*' => ['required', 'string', 'distinct', 'max:50'], 			'csp_allowed_fonts' => ['array'], 			'csp_allowed_fonts.*' => ['required', 'string', 'distinct', 'max:50'],  			'password_reset_timeout' => ['required', 'integer', 'min:1'], 			'email_verification_timeout' => ['required', 'integer', 'min:1'],  			'cache_store' => ['required', 'string', Rule::in($caches)], 			'queue_driver' => ['required', 'string', Rule::in($queues)],  			'registration_active' => ['boolean'], 			'registration_role_id' => ['nullable', 'uuid', 'exists:' . Role::class . ',id'], 			'registration_api_role_id' => ['nullable', 'uuid', 'exists:' . Role::class . ',id'], 			'session_driver' => ['required', 'string', Rule::in($sessions)], 			'session_lifetime' => ['required', 'integer', 'min:1'], 			'basic_auth_username_field' => ['required', 'string', 'in:id,email'], 			'push_devices_cleanup_days' => ['nullable', 'integer', 'min:1'],  			'aws_access_key_id' => ['nullable', 'string', 'max:50'], 			'aws_secret_access_key' => ['nullable', 'string', 'max:50'], 			'aws_default_region' => ['nullable', 'string', 'max:20'], 			'aws_bucket_name' => ['nullable', 'string', 'max:50'], 			'aws_bucket_url' => ['nullable', 'url', 'max:100'],  			'onesignal_app_id' => ['nullable', 'uuid'], 			'onesignal_rest_api_key' => ['nullable', 'required_with:onesignal_app_id', 'string', 'max:64'], 			'onesignal_user_auth_key' => ['nullable', 'required_with:onesignal_app_id', 'string', 'max:64'], 			'onesignal_stats_check_days' => ['nullable', 'integer', 'min:1'],  			'telescope_active' => ['boolean'], 			'telescope_same_ip' => ['boolean'], 			'telescope_prune_hours' => ['nullable', 'integer', 'min:1'],  			'monitor_active' => ['boolean'], 			'backup_disks' => ['array'], 			'backup_disks.*' => ['required', 'string', 'distinct', Rule::in($filesystems)], 			'monitor_slack_webhook' => ['nullable', 'url', 'max:100'], 			'monitor_emails' => ['array'], 			'monitor_emails.*' => ['required', 'email', 'distinct', 'max:50'], 			'backup_keep_days' => ['required', 'integer', 'min:0'],  			'paypal_sandbox' => ['boolean'], 			'paypal_client_id' => ['nullable', 'string', 'max:50'], 			'paypal_client_secret' => ['nullable', 'string', 'max:50'], 			'paypal_sandbox_client_id' => ['nullable', 'string', 'max:50'], 			'paypal_sandbox_client_secret' => ['nullable', 'string', 'max:50'],  			'webhook_scheduler_url' => ['nullable', 'url', 'max:100'], 			'webhook_scheduler_token' => ['nullable', 'string', 'max:500'],  			'bitbucket_active' => ['boolean'], 			'bitbucket_client_id' => ['nullable', 'string', 'max:100'], 			'bitbucket_client_secret' => ['nullable', 'string', 'max:500'],  			'github_active' => ['boolean'], 			'github_client_id' => ['nullable', 'string', 'max:100'], 			'github_client_secret' => ['nullable', 'string', 'max:500'],  			'gitlab_active' => ['boolean'], 			'gitlab_client_id' => ['nullable', 'string', 'max:100'], 			'gitlab_client_secret' => ['nullable', 'string', 'max:500'],  			'facebook_active' => ['boolean'], 			'facebook_client_id' => ['nullable', 'string', 'max:100'], 			'facebook_client_secret' => ['nullable', 'string', 'max:500'],  			'twitter_active' => ['boolean'], 			'twitter_client_id' => ['nullable', 'string', 'max:100'], 			'twitter_client_secret' => ['nullable', 'string', 'max:500'],  			'google_active' => ['boolean'], 			'google_client_id' => ['nullable', 'string', 'max:100'], 			'google_client_secret' => ['nullable', 'string', 'max:500'],  			'linkedin_active' => ['boolean'], 			'linkedin_client_id' => ['nullable', 'string', 'max:100'], 			'linkedin_client_secret' => ['nullable', 'string', 'max:500'],  			'apple_active' => ['boolean'], 			'apple_client_id' => ['nullable', 'string', 'max:100'], 			'apple_client_secret' => ['nullable', 'string', 'max:500'],  			'sms_default_reply' => ['nullable', 'string', 'max:160'],  			'vonage_from_number' => ['nullable', 'string', 'max:20'], 			'vonage_api_key' => ['nullable', 'required_with:vonage_from_number', 'string', 'max:50'], 			'vonage_api_secret' => ['nullable', 'required_with:vonage_from_number', 'string', 'max:50'],  			'twilio_from_number' => ['nullable', 'string', 'max:20'], 			'twilio_api_key' => ['nullable', 'required_with:twilio_from_number', 'string', 'max:50'], 			'twilio_api_secret' => ['nullable', 'required_with:twilio_from_number', 'string', 'max:50'],  			'infobip_from_number' => ['nullable', 'string', 'max:20'], 			'infobip_api_subdomain' => ['nullable', 'required_with:infobip_from_number', 'string', 'max:50'], 			'infobip_username' => ['nullable', 'required_with:infobip_from_number', 'email', 'max:50'], 			'infobip_password' => ['nullable', 'required_with:infobip_from_number', 'string', 'max:50'],  			'nth_from_number' => ['nullable', 'string', 'max:20'], 			'nth_api_key' => ['nullable', 'required_with:nth_from_number', 'string', 'max:50'], 			'nth_api_secret' => ['nullable', 'required_with:nth_from_number', 'string', 'max:50'],  			'elks_from_number' => ['nullable', 'string', 'max:20'], 			'elks_api_key' => ['nullable', 'required_with:elks_from_number', 'string', 'max:50'], 			'elks_api_secret' => ['nullable', 'required_with:elks_from_number', 'string', 'max:50'],  			'free_shipping_hp' => ['nullable', 'numeric', 'min:0'], 			'shipping_cost_up_to_2_hp' => ['nullable', 'numeric', 'min:0'], 			'shipping_cost_up_to_5_hp' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_2_hp'], 			'shipping_cost_up_to_10_hp' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_5_hp'], 			'shipping_cost_up_to_15_hp' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_10_hp'], 			'shipping_cost_up_to_20_hp' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_15_hp'], 			'shipping_cost_up_to_25_hp' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_20_hp'], 			'shipping_cost_up_to_30_hp' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_25_hp'],  			'free_shipping_paketomat' => ['nullable', 'numeric', 'min:0'], 			'shipping_cost_up_to_2_paketomat' => ['nullable', 'numeric', 'min:0'], 			'shipping_cost_up_to_5_paketomat' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_2_paketomat'], 			'shipping_cost_up_to_10_paketomat' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_5_paketomat'], 			'shipping_cost_up_to_15_paketomat' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_10_paketomat'], 			'shipping_cost_up_to_20_paketomat' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_15_paketomat'], 			'shipping_cost_up_to_25_paketomat' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_20_paketomat'], 			'shipping_cost_up_to_30_paketomat' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_25_paketomat'],  			'free_shipping_dpd' => ['nullable', 'numeric', 'min:0'], 			'shipping_cost_up_to_2_dpd' => ['nullable', 'numeric', 'min:0'], 			'shipping_cost_up_to_5_dpd' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_2_dpd'], 			'shipping_cost_up_to_10_dpd' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_5_dpd'], 			'shipping_cost_up_to_15_dpd' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_10_dpd'], 			'shipping_cost_up_to_20_dpd' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_15_dpd'], 			'shipping_cost_up_to_25_dpd' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_20_dpd'], 			'shipping_cost_up_to_30_dpd' => ['nullable', 'numeric', 'min:0', 'gte:shipping_cost_up_to_25_dpd'],  			'color_name' => ['nullable', 'array'], 			'color_name.*' => ['nullable', 'string', 'max:50'],  			'color_hex' => ['nullable', 'array'], 			'color_hex.*' => ['nullable', 'string', 'max:7'],  		]; 	}