This commit is contained in:
Andras Bacsai committed 2023-05-22 09:53:31 +02:00
1 parent c4397adfce
commit 828ecc6803
2 files changed
+8 -6

No files matched your search

+7 -5
View File
@@ -16,12 +16,14 @@ class ApplicationSetting extends Model
{
return Attribute::make(
set: function ($value) {
if ($value) {
$this->application->ports_exposes = '80';
} else {
$this->application->ports_exposes = '3000';
if (is_null($this->application->ports_exposes)) {
if ($value) {
$this->application->ports_exposes = '80';
} else {
$this->application->ports_exposes = '3000';
}
$this->application->save();
}
$this->application->save();
return $value;
}
);