mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 16:14:35 +00:00
refactor: replace direct SslCertificate queries with server relationship methods for consistency
This commit is contained in:
1 parent
bf5c08d071
commit
f4e5c195fe
19 files changed
+27
-36
No files matched your search
@@ -39,7 +39,7 @@ class Show extends Component
|
||||
|
||||
public function loadCaCertificate()
|
||||
{
|
||||
$this->caCertificate = SslCertificate::where('server_id', $this->server->id)->where('is_ca_certificate', true)->first();
|
||||
$this->caCertificate = $this->server->sslCertificates()->where('is_ca_certificate', true)->first();
|
||||
|
||||
if ($this->caCertificate) {
|
||||
$this->certificateContent = $this->caCertificate->ssl_certificate;
|
||||
|
||||
Reference in new issue
Block a user