$server, ]); } public function getLogs(Server $server) { $data = $this->logService->setServer($server)->fetchLogs(); return $data ? $data : []; } }