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); } }