preferences['theme'] ?? 'systeme'; } public function preferenceTailleTexte(): string { return $this->preferences['taille_texte'] ?? 'normal'; } public function definirPreferences(string $theme, string $tailleTexte): void { $this->forceFill(['preferences' => ['theme' => $theme, 'taille_texte' => $tailleTexte]])->save(); } }