An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(models): use snake_case for Eloquent attribute access
Andras Bacsai1497ad35a949
diff --git a/app/Livewire/Project/Database/Dragonfly/General.php b/app/Livewire/Project/Database/Dragonfly/General.phpindex 0a1635fcee..2e6c9dca75 100644--- a/app/Livewire/Project/Database/Dragonfly/General.php+++ b/app/Livewire/Project/Database/Dragonfly/General.php@@ -278,8 +278,8 @@ class General extends Component}SslHelper::generateSslCertificate(- commonName: $existingCert->commonName,- subjectAlternativeNames: $existingCert->subjectAlternativeNames ?? [],+ commonName: $existingCert->common_name,+ subjectAlternativeNames: $existingCert->subject_alternative_names ?? [],resourceType: $existingCert->resource_type,resourceId: $existingCert->resource_id,serverId: $existingCert->server_id,diff --git a/app/Livewire/Project/Database/Keydb/General.php b/app/Livewire/Project/Database/Keydb/General.phpindex b6cc981764..235e34e208 100644--- a/app/Livewire/Project/Database/Keydb/General.php+++ b/app/Livewire/Project/Database/Keydb/General.php@@ -283,8 +283,8 @@ class General extends Component}SslHelper::generateSslCertificate(- commonName: $existingCert->commonName,- subjectAlternativeNames: $existingCert->subjectAlternativeNames ?? [],+ commonName: $existingCert->common_name,+ subjectAlternativeNames: $existingCert->subject_alternative_names ?? [],resourceType: $existingCert->resource_type,resourceId: $existingCert->resource_id,serverId: $existingCert->server_id,diff --git a/app/Livewire/Project/Database/Redis/General.php b/app/Livewire/Project/Database/Redis/General.phpindex 80a0b904c9..e131bc5982 100644--- a/app/Livewire/Project/Database/Redis/General.php+++ b/app/Livewire/Project/Database/Redis/General.php@@ -296,8 +296,8 @@ class General extends Component}SslHelper::generateSslCertificate(- commonName: $existingCert->commonName,- subjectAlternativeNames: $existingCert->subjectAlternativeNames ?? [],+ commonName: $existingCert->common_name,+ subjectAlternativeNames: $existingCert->subject_alternative_names ?? [],resourceType: $existingCert->resource_type,resourceId: $existingCert->resource_id,serverId: $existingCert->server_id,diff --git a/app/Models/Application.php b/app/Models/Application.phpindex 018bfd4216..bdc76eb33b 100644--- a/app/Models/Application.php+++ b/app/Models/Application.php@@ -1136,7 +1136,7 @@ class Application extends BaseModelpublic function isConfigurationChanged(bool $save = false){- $newConfigHash = base64_encode($this->fqdn.$this->git_repository.$this->git_branch.$this->git_commit_sha.$this->build_pack.$this->static_image.$this->install_command.$this->build_command.$this->start_command.$this->ports_exposes.$this->ports_mappings.$this->custom_network_aliases.$this->base_directory.$this->publish_directory.$this->dockerfile.$this->dockerfile_location.$this->custom_labels.$this->custom_docker_run_options.$this->dockerfile_target_build.$this->redirect.$this->custom_nginx_configuration.$this->settings->use_build_secrets.$this->settings->inject_build_args_to_dockerfile.$this->settings->include_source_commit_in_build);+ $newConfigHash = base64_encode($this->fqdn.$this->git_repository.$this->git_branch.$this->git_commit_sha.$this->build_pack.$this->static_image.$this->install_command.$this->build_command.$this->start_command.$this->ports_exposes.$this->ports_mappings.$this->custom_network_aliases.$this->base_directory.$this->publish_directory.$this->dockerfile.$this->dockerfile_location.$this->custom_labels.$this->custom_docker_run_options.$this->dockerfile_target_build.$this->redirect.$this->custom_nginx_configuration.$this->settings?->use_build_secrets.$this->settings?->inject_build_args_to_dockerfile.$this->settings?->include_source_commit_in_build);if ($this->pull_request_id === 0 || $this->pull_request_id === null) {$newConfigHash .= json_encode($this->environment_variables()->get(['value', 'is_multiline', 'is_literal', 'is_buildtime', 'is_runtime'])->sort());} else {