tomatophp/filament-settings-hub
Manage your Filament app settings with a GUI and helper functions. Install via Composer, run the install command, and register the plugin in your panel provider. Use the setting() helper to read values, and register new settings pages using the SettingHold facade.
site_colors settings group, demonstrating clean namespacing/isolation — a strong signal for modular Laravel architectures where configuration is dynamic or environment-specific.setting() helper (e.g. setting('site_primary_color')), keeping call sites terse but introducing a global-scope function to be aware of.->allowColorSettings()), so existing installs are unaffected — good backwards-compatibility discipline.filament-settings-hub:install command now publishes each settings migration only once, so re-running it no longer creates duplicate migrations. This materially improves the install/upgrade story for iterative deployments and CI pipelines.php artisan filament-settings-hub:install plus php artisan migrate — minor, but must be sequenced into the deployment runbook.composer.json against your stack before upgrading.setting('site_primary_color'), expect reads on every page render if wired into layouts — this raises the importance of caching (see Operational Impact).site_colors migration is applied in each environment after enabling the feature.site_colors group as a reference implementation)?composer.json).SettingGroup, Setting models).->allowColorSettings(), run php artisan filament-settings-hub:install and php artisan migrate.site_colors group, so existing apps are untouched until opted in.setting('site_primary_color') (and secondary/tertiary) into blade/layout CSS variables.site_colors namespace reduces collision risk for theme values specifically.composer require tomatophp/filament-settings-hub.php artisan vendor:publish --tag="settings-hub-config".Settings::group('app')->add('theme', 'dark')).SettingsHub::make().->allowColorSettings() to surface the new site-colors page.setting() accessor.filament-settings-hub:install in a throwaway environment to confirm idempotent migration publishing (the v5.0.1 fix).migrate in release steps when enabling color settings.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Database downtime | Settings unavailable | Use config file fallback |
| Filament plugin conflict | UI breaks | Isolate hub in a dedicated plugin |
| Permission misconfiguration | Unauthorized setting changes (incl. theme) | Integrate with Filament’s policies; gate the colors page |
| Migration corruption | Lost settings | Backup DB before migration |
| Duplicate migrations on re-install | Schema drift / noisy migrations | Resolved in v5.0.1 — re-run install safely |
| Color feature enabled, migrate skipped | setting('site_primary_color') returns null |
Add release-step check; provide fallback palette |
| Package abandonment | No future updates | Fork and maintain |
How can I help you explore Laravel packages today?