exists($logoPath)) { return null; } return Storage::disk('public')->url($logoPath); } catch (\Exception) { return null; } } // ── SMTP ───────────────────────────────────────────────────────────────── public static function smtpConfig(): array { return self::get('smtp', []); } public static function smtpConfigured(): bool { $smtp = self::smtpConfig(); return ! empty($smtp['host']) && ! empty($smtp['port']); } // ── Titre du site ───────────────────────────────────────────────────────── public static function siteName(): string { return self::get('site_name') ?: config('app.name', 'MesRelevés'); } // ── Inscriptions ───────────────────────────────────────────────────────── public static function registrationEnabled(): bool { // Désactivées par défaut return (bool) self::get('registration_enabled', false); } // ── Recherche ──────────────────────────────────────────────────────────────── public static function searchMaxResults(): int { return max(10, (int) self::get('search_max_results', 200)); } // ── Mises à jour ────────────────────────────────────────────────────────── public static function updatesDisabled(): bool { return (bool) self::get('updates_disabled', false); } }