public function update(StoreGeneralSettings $request): RedirectResponse 	{ 		$settings = setting();  		$settings->fill([ 			'app_name' => preg_replace('/\s+/', ' ', (string) $request->app_name), 			'app_scheme' => $request->app_scheme ? preg_replace('/\s+/', '', strtolower((string) $request->app_scheme)) : null, 			'ios_maintenance_min_version' => $request->ios_maintenance_min_version, 			'android_maintenance_min_version' => $request->android_maintenance_min_version, 			'app_description' => $request->app_description ? preg_replace('/\s+/', ' ', (string) $request->app_description) : null, 			'maintenance_active' => $request->boolean('maintenance_active'), 			'debug_mode_active' => $request->boolean('debug_mode_active'),  			'app_email' => $request->app_email ? strtolower((string) $request->app_email) : null, 			'noreply_email' => $request->noreply_email ? strtolower((string) $request->noreply_email) : null, 			'smtp_host' => $request->smtp_host, 			'smtp_port' => $request->smtp_port, 			'smtp_username' => $request->smtp_username, 			'smtp_password' => $request->smtp_password, 			'smtp_protocol' => $request->smtp_protocol,  			'timezone' => $request->timezone, 			'date_format' => $request->date_format, 			'time_format' => $request->time_format,  			'currency_code' => strtoupper((string) $request->currency_code), 			'google_api_key' => $request->google_api_key,  			'min_pass_len' => $request->min_pass_len, 			'pass_uppercase_char' => $request->boolean('pass_uppercase_char'), 			'pass_numeric_char' => $request->boolean('pass_numeric_char'), 			'pass_special_char' => $request->boolean('pass_special_char'),  			'jwt_secret_key' => $request->boolean('jwt_regenerate_secret_key') ? Str::random(32) : $settings->jwt_secret_key, 			'jwt_expiration_time' => $request->jwt_expiration_time,  			'media_storage' => $request->media_storage, 			'max_upload_size' => 1024 * 1024 * $request->max_upload_size, 			'max_video_length' => $request->max_video_length, 			'thumb_width' => $request->thumb_width, 			'responsive_images_breakpoints' => $request->responsive_images_breakpoints, 			'queue_media_conversions' => $request->boolean('queue_media_conversions'), 			'protected_media_token_valid_until' => $request->protected_media_token_valid_until,  			'login_max_attempts' => $request->login_max_attempts, 			'login_backoff_minutes' => $request->login_backoff_minutes, 			'api_rate_limit' => $request->api_rate_limit, 			'api_rate_limit_backoff_minutes' => $request->api_rate_limit_backoff_minutes,  			'cors_allowed_origins' => $request->cors_allowed_origins, 			'csp_allowed_scripts' => $request->csp_allowed_scripts, 			'csp_allowed_styles' => $request->csp_allowed_styles, 			'csp_allowed_fonts' => $request->csp_allowed_fonts,  			'password_reset_timeout' => $request->password_reset_timeout, 			'email_verification_timeout' => $request->email_verification_timeout, 			'registration_active' => $request->boolean('registration_active'), 			'registration_role_id' => $request->registration_role_id, 			'registration_api_role_id' => $request->registration_api_role_id, 			'session_driver' => $request->session_driver, 			'session_lifetime' => $request->session_lifetime, 			'basic_auth_username_field' => $request->basic_auth_username_field, 			'push_devices_cleanup_days' => $request->push_devices_cleanup_days,  			'aws_access_key_id' => $request->aws_access_key_id, 			'aws_secret_access_key' => $request->aws_secret_access_key, 			'aws_default_region' => $request->aws_default_region, 			'aws_bucket_name' => $request->aws_bucket_name, 			'aws_bucket_url' => $request->aws_bucket_url,  			'cache_store' => $request->cache_store, 			'queue_driver' => $request->queue_driver,  			'onesignal_app_id' => $request->onesignal_app_id, 			'onesignal_rest_api_key' => $request->onesignal_rest_api_key, 			'onesignal_user_auth_key' => $request->onesignal_user_auth_key, 			'onesignal_stats_check_days' => $request->onesignal_stats_check_days,  			'telescope_active' => $request->boolean('telescope_active'), 			'telescope_same_ip' => $request->boolean('telescope_same_ip'), 			'telescope_prune_hours' => $request->telescope_prune_hours,  			'monitor_active' => $request->boolean('monitor_active'), 			'backup_disks' => $request->backup_disks, 			'monitor_slack_webhook' => $request->monitor_slack_webhook, 			'monitor_emails' => $request->monitor_emails, 			'backup_keep_days' => $request->backup_keep_days,  			'paypal_sandbox' => $request->boolean('paypal_sandbox'), 			'paypal_client_id' => $request->paypal_client_id, 			'paypal_client_secret' => $request->paypal_client_secret, 			'paypal_sandbox_client_id' => $request->paypal_sandbox_client_id, 			'paypal_sandbox_client_secret' => $request->paypal_sandbox_client_secret,  			'openai_api_key' => $request->openai_api_key, 			'openai_moderation_enabled' => $request->boolean('openai_moderation_enabled'),  			'webhook_scheduler_url' => $request->webhook_scheduler_url, 			'webhook_scheduler_token' => $request->webhook_scheduler_token,  			'bitbucket_active' => $request->boolean('bitbucket_active'), 			'bitbucket_client_id' => $request->bitbucket_client_id, 			'bitbucket_client_secret' => $request->bitbucket_client_secret,  			'github_active' => $request->boolean('github_active'), 			'github_client_id' => $request->github_client_id, 			'github_client_secret' => $request->github_client_secret,  			'gitlab_active' => $request->boolean('gitlab_active'), 			'gitlab_client_id' => $request->gitlab_client_id, 			'gitlab_client_secret' => $request->gitlab_client_secret,  			'facebook_active' => $request->boolean('facebook_active'), 			'facebook_client_id' => $request->facebook_client_id, 			'facebook_client_secret' => $request->facebook_client_secret,  			'twitter_active' => $request->boolean('twitter_active'), 			'twitter_client_id' => $request->twitter_client_id, 			'twitter_client_secret' => $request->twitter_client_secret,  			'google_active' => $request->boolean('google_active'), 			'google_client_id' => $request->google_client_id, 			'google_client_secret' => $request->google_client_secret,  			'linkedin_active' => $request->boolean('linkedin_active'), 			'linkedin_client_id' => $request->linkedin_client_id, 			'linkedin_client_secret' => $request->linkedin_client_secret,  			'apple_active' => $request->boolean('apple_active'), 			'apple_client_id' => $request->apple_client_id, 			'apple_client_secret' => $request->apple_client_secret,  			'sms_default_reply' => $request->sms_default_reply,  			'vonage_from_number' => $request->vonage_from_number ? preg_replace('/\s+/', '', (string) $request->vonage_from_number) : null, 			'vonage_api_key' => $request->vonage_api_key, 			'vonage_api_secret' => $request->vonage_api_secret,  			'twilio_from_number' => $request->twilio_from_number ? preg_replace('/\s+/', '', (string) $request->twilio_from_number) : null, 			'twilio_api_key' => $request->twilio_api_key, 			'twilio_api_secret' => $request->twilio_api_secret,  			'infobip_from_number' => $request->infobip_from_number ? preg_replace('/\s+/', '', (string) $request->infobip_from_number) : null, 			'infobip_api_subdomain' => $request->infobip_api_subdomain ? preg_replace('/\s+/', '', (string) $request->infobip_api_subdomain) : null, 			'infobip_username' => $request->infobip_username, 			'infobip_password' => $request->infobip_password,  			'nth_from_number' => $request->nth_from_number ? preg_replace('/\s+/', '', (string) $request->nth_from_number) : null, 			'nth_api_key' => $request->nth_api_key, 			'nth_api_secret' => $request->nth_api_secret,  			'elks_from_number' => $request->elks_from_number ? preg_replace('/\s+/', '', (string) $request->elks_from_number) : null, 			'elks_api_key' => $request->elks_api_key, 			'elks_api_secret' => $request->elks_api_secret,  			'tax' => $request->tax,  			'corvus_pay_api_version' => $request->corvus_pay_api_version, 			'corvus_pay_form_url' => $request->corvus_pay_form_url, 			'corvus_pay_shop_id' => $request->corvus_pay_shop_id, 			'corvus_pay_secret_key' => $request->corvus_pay_secret_key, 		]) 		->save();  		return $this->redirectFromSave(); 	}