server->node->vnc_enabled) { abort(403, 'VNC is not enabled on this server node.'); } try { $proxmox = new Proxmox; $this->vncUrl = $proxmox->vnc($this->server); $this->vncLoadFailed = false; } catch (\Throwable $e) { $this->vncUrl = null; $this->vncLoadFailed = true; report($e); $this->notify('Failed to connect to VNC console. Please try again.', 'error'); } } public function render() { return view('proxmox::vnc', [ 'vnc' => $this->vncUrl, ])->layoutData([ 'sidebar' => true, ]); } }