first(); $isComplete = $installation !== null && (bool) $installation->completed; if ($isComplete) { Cache::rememberForever(self::CACHE_KEY, fn (): bool => true); } return $isComplete; } catch (Throwable) { return false; } } public static function setComplete(): void { Cache::rememberForever(self::CACHE_KEY, fn (): bool => true); } public static function clearCache(): void { Cache::forget(self::CACHE_KEY); } }