Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Dec 6, 2024
1 parent ab7c240 commit 72a3610
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('domain')
Tables\Columns\TextColumn::make('relatedDomain.domain')
])
->filters([
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function table(Table $table): Table
{
return $table
->columns([
//
Tables\Columns\TextColumn::make('domain.domain')
])
->filters([
//
Expand Down
10 changes: 8 additions & 2 deletions web/Modules/LetsEncrypt/Models/LetsEncryptCertificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ public static function boot()
if (!$findDomain) {
throw new \Exception('Domain not found');
}
unset($model->domain_id);
unset($model->email);

unset($model->domain_id);
unset($model->email);

$findSSL = DomainSslCertificate::where('domain', $findDomain->domain)->first();
if ($findSSL) {
Expand Down Expand Up @@ -66,4 +67,9 @@ public static function boot()
});
}

public function domain()
{
return $this->belongsTo(Domain::class);
}

}
5 changes: 5 additions & 0 deletions web/app/Models/DomainSslCertificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@ public function getSSLFiles()

return null;
}

public function relatedDomain()
{
return $this->belongsTo(Domain::class, 'domain', 'domain');
}
}

0 comments on commit 72a3610

Please sign in to comment.