feat: terminal views for servers

improvement: connect to container if only one available
This commit is contained in:
Andras Bacsai
2024-10-24 12:21:36 +02:00
parent a310a13016
commit 9a227dbad6
5 changed files with 71 additions and 16 deletions

View File

@@ -131,6 +131,11 @@ class Server extends BaseModel
protected $guarded = [];
public function type()
{
return 'server';
}
public static function isReachable()
{
return Server::ownedByCurrentTeam()->whereRelation('settings', 'is_reachable', true);