This commit is contained in:
Andras Bacsai
2023-05-08 09:16:50 +02:00
parent 117ba360ac
commit 5ed91c05bf
16 changed files with 54 additions and 22 deletions

View File

@@ -52,4 +52,9 @@ class Server extends BaseModel
{
return $this->hasOne(ServerSetting::class);
}
static public function validated()
{
return Server::where('team_id', session('currentTeam')->id)->whereRelation('settings', 'is_validated', true)->get();
}
}