feat: notify user of disk cleanup init

This commit is contained in:
Andras Bacsai
2023-07-07 21:35:29 +02:00
parent 18d26904e2
commit 7bfeb6c177
5 changed files with 21 additions and 8 deletions

View File

@@ -84,6 +84,10 @@ class Server extends BaseModel
{
return "{$this->ip}_{$this->port}_{$this->user}";
}
public function team()
{
return $this->belongsTo(Team::class);
}
static public function ownedByCurrentTeam(array $select = ['*'])
{
$selectArray = collect($select)->concat(['id']);
@@ -102,4 +106,4 @@ class Server extends BaseModel
$swarmDocker = collect($server->swarmDockers->all());
return $standaloneDocker->concat($swarmDocker);
}
}
}