wip: services

This commit is contained in:
Andras Bacsai
2023-09-21 17:48:31 +02:00
parent 301469de6b
commit 6b75ff7de4
29 changed files with 632 additions and 427 deletions

View File

@@ -21,9 +21,9 @@ class StandaloneDocker extends BaseModel
return $this->belongsTo(Server::class);
}
public function service()
public function services()
{
return $this->belongsTo(Service::class, 'destination');
return $this->morphMany(Service::class, 'destination');
}
public function attachedTo()