mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 08:15:24 +00:00
updates
This commit is contained in:
1 parent
716c9aa860
commit
7bcbfc13b0
10 files changed
+45
-17
No files matched your search
@@ -16,9 +16,27 @@ class PrivateKey extends BaseModel
|
||||
$selectArray = collect($select)->concat(['id']);
|
||||
return PrivateKey::whereTeamId(session('currentTeam')->id)->where('id', '>', 0)->select($selectArray->all());
|
||||
}
|
||||
|
||||
public function applications()
|
||||
{
|
||||
return $this->hasMany(Application::class);
|
||||
}
|
||||
public function githubApps()
|
||||
{
|
||||
return $this->hasMany(GithubApp::class);
|
||||
}
|
||||
public function gitlabApps()
|
||||
{
|
||||
return $this->hasMany(GitlabApp::class);
|
||||
}
|
||||
public function servers()
|
||||
{
|
||||
return $this->hasMany(Server::class);
|
||||
}
|
||||
public function isEmpty()
|
||||
{
|
||||
if ($this->servers()->count() === 0 && $this->applications()->count() === 0 && $this->githubApps()->count() === 0 && $this->gitlabApps()->count() === 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user