mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 22:14:26 +00:00
Refactor Application model and migration
This commit is contained in:
1 parent
78b194cb16
commit
13bceb934f
2 files changed
+20
-2
No files matched your search
@@ -215,6 +215,26 @@ class Application extends BaseModel
|
||||
|
||||
);
|
||||
}
|
||||
public function status(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
set: function ($value) {
|
||||
if ($this->additional_networks->count() === 0) {
|
||||
return $value;
|
||||
} else {
|
||||
return 'complex';
|
||||
}
|
||||
|
||||
},
|
||||
get: function ($value) {
|
||||
if ($this->additional_networks->count() === 0) {
|
||||
return $value;
|
||||
} else {
|
||||
return 'complex';
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
public function portsExposesArray(): Attribute
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user