mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 22:14:26 +00:00
fixes
This commit is contained in:
1 parent
c4c2e81701
commit
8daad8f8b8
12 files changed
+78
-30
No files matched your search
@@ -74,9 +74,10 @@ class Server extends BaseModel
|
||||
{
|
||||
return $this->hasOne(ServerSetting::class);
|
||||
}
|
||||
static public function ownedByCurrentTeam()
|
||||
static public function ownedByCurrentTeam(array $select = ['*'])
|
||||
{
|
||||
return Server::whereTeamId(session('currentTeam')->id);
|
||||
$selectArray = collect($select)->concat(['id']);
|
||||
return Server::whereTeamId(session('currentTeam')->id)->with('settings')->select($selectArray->all());
|
||||
}
|
||||
|
||||
static public function validated()
|
||||
|
||||
Reference in new issue
Block a user