public function update(StoreGeneralSettings $request): RedirectResponse 	{ 		$settings = app(GeneralSettings::class);  		$settings->fill([ 			'app_name' => preg_replace('/\s+/', ' ', $request->app_name), 			'app_scheme' => $request->app_scheme ? preg_replace('/\s+/', '', strtolower($request->app_scheme)) : null, 			'ios_min_version' => $request->ios_min_version, 			'android_min_version' => $request->android_min_version, 			'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+/', ' ', $request->app_description) : null, 			'maintenance_active' => $request->boolean('maintenance_active'), 			'debug_mode_active' => $request->boolean('debug_mode_active'),  			'app_email' => $request->app_email ? strtolower($request->app_email) : null, 			'noreply_email' => $request->noreply_email ? strtolower($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($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,  			'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,  			'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+/', '', $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+/', '', $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+/', '', $request->infobip_from_number) : null, 			'infobip_api_subdomain' => $request->infobip_api_subdomain ? preg_replace('/\s+/', '', $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+/', '', $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+/', '', $request->elks_from_number) : null, 			'elks_api_key' => $request->elks_api_key, 			'elks_api_secret' => $request->elks_api_secret,  			'erp_client_id' => $request->erp_client_id, 			'erp_client_secret' => $request->erp_client_secret, 			'erp_api_key' => $request->erp_api_key, 			'erp_base_url' => $request->erp_base_url,  			'pdv_default' => $request->pdv_default, 			'main_currency' => $request->main_currency, 			'currency_exchange_rate' => $request->currency_exchange_rate,  			'gratis_delivery' => $request->gratis_delivery, 			'gratis_delivery_ino' => $request->gratis_delivery_ino,  			'corvus_version' => $request->corvus_version, 			'corvus_store_id' => $request->corvus_store_id, 			'corvus_language' => $request->corvus_language, 			'corvus_currency' => $request->corvus_currency, 			'corvus_secret_key' => $request->corvus_secret_key, 			'corvus_require_complete' => $request->boolean('corvus_require_complete'), 			'corvus_success_url' => $request->corvus_success_url, 			'corvus_cancel_url' => $request->corvus_cancel_url,  			'iban' => $request->iban, 			'model' => $request->model, 			'sifra_namjene' => $request->sifra_namjene, 			'company_name' => $request->company_name, 			'company_address' => $request->company_address, 			'company_town' => $request->company_town, 			'company_zip_code' => $request->company_zip_code, 			'company_additional_address_info' => $request->company_additional_address_info,  			'points_on_referral' => $request->points_on_referral, 			'points_on_register' => $request->points_on_register,  			'order_final_amount_discount_limit' => $request->order_final_amount_discount_limit, 			'shipping_extra_costs_value' => $request->shipping_extra_costs_value,  			'free_product_quantity' => $request->free_product_quantity,  			'terms_and_conditions_of_sale_hr' => $request->terms_and_conditions_of_sale_hr, 			'privacy_policy_hr' => $request->privacy_policy_hr, 			'security_of_online_payments_hr' => $request->security_of_online_payments_hr, 			'terms_of_delivery_hr' => $request->terms_of_delivery_hr, 			'cookie_policy_hr' => $request->cookie_policy_hr, 			'terms_and_conditions_of_use_hr' => $request->terms_and_conditions_of_use_hr, 			'returns_and_complaints_hr' => $request->returns_and_complaints_hr,  			'terms_and_conditions_of_sale_en' => $request->terms_and_conditions_of_sale_en, 			'privacy_policy_en' => $request->privacy_policy_en, 			'security_of_online_payments_en' => $request->security_of_online_payments_en, 			'terms_of_delivery_en' => $request->terms_of_delivery_en, 			'cookie_policy_en' => $request->cookie_policy_en, 			'terms_and_conditions_of_use_en' => $request->terms_and_conditions_of_use_en, 			'returns_and_complaints_en' => $request->returns_and_complaints_en,  		]) 		->save();  		return $this->redirectFromSave(); 	}