andreia/filament-ui-switcher), with minimal configuration (publish assets, register plugin in app/Providers/FilamentPluginServiceProvider.php).user_preferences table migration.@font-face declarations or Tailwind fontFamily config, producing duplicate font loads or FOUT. Audit which font source wins before rollout.font-family classes).user_preferences table). Uses Laravel’s Eloquent.composer show filament/filament).composer require andreia/filament-ui-switcher
php artisan vendor:publish --tag="filament-ui-switcher-assets"
app/Providers/FilamentPluginServiceProvider.php:
public function register(): void
{
FilamentPlugin::register(\Andreia\FilamentUISwitcher\FilamentUISwitcherPlugin::make());
}
filament-ui-switcher.php) only for settings not covered fluently.php artisan migrate
(The package provides a migration for user_preferences.)@font-face loads.!important overrides).tenant_id in the user_preferences table.FilamentPluginServiceProvider registration.font-src.user_preferences table and migration.user_preferences table. Index user_id to optimize queries.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Filament version incompatibility | Switcher breaks or renders poorly | Pin package version; test upgrades early. |
| Fluent API change on upgrade | Disabled sections reappear | Pin minor version; smoke-test panel config post-upgrade. |
| Font asset blocked by CSP | Missing/fallback typeface | Update font-src in CSP; verify asset path. |
Duplicate @font-face loads |
Extra page weight, FOUT | Disable packaged fonts or align with brand font config. |
| Database storage corruption | Lost user preferences | Backup user_preferences table. |
| CSS conflict with custom themes | Modal styles override project UI | Use !important sparingly; inspect conflicts. |
| Livewire misconfiguration | Modal fails to load | Verify Livewire version and config. |
| Session storage exhaustion | Rare; but could cause memory issues | Monitor session table size. |
@font-face/CSP for the font feature.FilamentPlugin::disable() in boot(), or re-enable a section removed by fluent config.How can I help you explore Laravel packages today?