latestVersion = get_latest_version_of_coolify(); $currentVersion = config('version'); version_compare($currentVersion, $this->latestVersion, '<') ? $this->isUpgradeAvailable = true : $this->isUpgradeAvailable = false; if (isDev()) { $this->isUpgradeAvailable = true; } $settings = InstanceSettings::get(); if ($settings->next_channel) { $this->isUpgradeAvailable = true; } } public function upgrade() { try { if ($this->showProgress) { return; } $this->showProgress = true; resolve(UpdateCoolify::class)(true); Toaster::success("Upgrading to {$this->latestVersion} version..."); } catch (\Exception $e) { return general_error_handler(err: $e, that: $this); } } }