server->ipv4 ?? $this->server->ipv6) ->usePassword($this->rootPassword) ->setTimeout(10) ->execute('echo "Connected"'); $this->server->update([ 'status' => ServerStatus::UNPROVISIONED, ]); dispatch(new ProvisionServer($this->server, $this->rootPassword, $this->sudoPassword)); } catch (\Throwable $e) { return; } } public function failed(\Throwable $exception): void { $this->server->update([ 'status' => ServerStatus::PROVIDER_TIMEOUT, ]); } }