diff --git a/app/Models/ServiceApplication.php b/app/Models/ServiceApplication.php index 256f6a106..f8fcda004 100644 --- a/app/Models/ServiceApplication.php +++ b/app/Models/ServiceApplication.php @@ -40,6 +40,10 @@ public function type() { return 'service'; } + public function team() + { + return data_get($this, 'environment.project.team'); + } public function workdir() { return service_configuration_dir() . "/{$this->service->uuid}"; } diff --git a/app/Models/ServiceDatabase.php b/app/Models/ServiceDatabase.php index 710bab1ff..9d90641e1 100644 --- a/app/Models/ServiceDatabase.php +++ b/app/Models/ServiceDatabase.php @@ -59,6 +59,10 @@ public function getServiceDatabaseUrl() } return "{$realIp}:{$port}"; } + public function team() + { + return data_get($this, 'environment.project.team'); + } public function workdir() { return service_configuration_dir() . "/{$this->service->uuid}"; }