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; // } } public function upgrade() { try { if ($this->updateInProgress) { return; } $this->rateLimit(1, 60); $this->updateInProgress = true; UpdateCoolify::run(force: true, async: true); } catch (\Throwable $e) { return handleError($e, $this); } } }