server, false); if ($uptime) { Toaster::success('Server is reachable with this private key.'); } else { Toaster::error('Server is NOT reachable with this private key.'); } } catch (\Exception $e) { return general_error_handler(err: $e, that: $this); } } public function setPrivateKey($private_key_id) { $this->server->update([ 'private_key_id' => $private_key_id ]); // Delete the old ssh mux file to force a new one to be created Storage::disk('ssh-mux')->delete($this->server->muxFilename()); $this->server->refresh(); $this->checkConnection(); } public function mount() { $this->parameters = getRouteParameters(); } }