wip: services

This commit is contained in:
Andras Bacsai committed 2023-09-20 15:42:41 +02:00
1 parent a86e971020
commit b4d69a22df
32 files changed
+964 -222

No files matched your search

+5
View File
@@ -21,6 +21,11 @@ class StandaloneDocker extends BaseModel
return $this->belongsTo(Server::class);
}
public function service()
{
return $this->belongsTo(Service::class, 'destination');
}
public function attachedTo()
{
return $this->applications?->count() > 0 || $this->databases?->count() > 0;