exists()) { return; } Cache::forever(self::CACHE_KEY, now()->addMinutes(self::MINUTES)->getTimestamp()); } public static function isOpen(): bool { $closesAt = Cache::get(self::CACHE_KEY); return is_int($closesAt) && now()->getTimestamp() < $closesAt; } public static function isPending(): bool { return ! Cache::has(self::CACHE_KEY); } }