- How do I install this Filament sticky save bar in my Laravel app?
- Run `composer require cocosmos/filament-sticky-save-bar` and register the plugin in your `Filament/AdminPanelProvider.php` using `->plugin(StickySaveBarPlugin::make())`. No migrations or routes are needed—just two steps total.
- Does this work with Filament v5’s sidebar and modals?
- Yes, the plugin automatically hides when a modal is open and respects the Filament sidebar, ensuring it never overlaps or block interactions. It’s designed to integrate seamlessly with Filament’s native UI components.
- Can I disable the sticky save bar for specific pages in my Filament app?
- Absolutely. Use the `HasStickySaveBarDisabled` trait on any page model to opt out globally or per-page. This gives you granular control without affecting other forms.
- Will this break if I use custom Livewire components or multi-step forms?
- The plugin relies on Filament’s built-in dirty-state detection, which works with all standard Livewire form inputs. For custom components, ensure they trigger `wire:model` or `wire:input` events to sync with the form’s dirty state.
- Does the sticky save bar support dark mode and translations?
- Yes, it includes dark mode support out of the box and comes with 8 built-in translations. If you need additional languages, use `php artisan vendor:publish` to extend the translation files.
- Can I position the save bar at the top of the screen instead of the bottom?
- Yes, use `->position(Position::Top)` in your plugin configuration. The default is `Position::Bottom`, but you can switch it fluently during registration.
- Is there a risk of conflicts with my existing Filament CSS or JavaScript?
- The plugin uses Tailwind CSS utilities and avoids `!important` rules to minimize conflicts. Test with your theme first, but it’s designed to work alongside Filament’s default styling and custom JS.
- How does the sticky save bar handle rapid form submissions or network errors?
- The plugin listens to Filament’s `wire:submit` and `saved` events. If a submission fails (e.g., due to network issues), the bar remains visible until the form is manually reset or changes are undone.
- What Laravel and Filament versions does this package support?
- It requires **PHP 8.2+** and **Filament v5.x**. There are no breaking changes to core Filament logic, so it’s fully backward-compatible with existing Livewire forms and Filament panels.
- Are there alternatives to this package for Filament v5?
- If you need a similar solution, you could build a custom Livewire component using Alpine.js for sticky behavior, but this package is the most integrated option for Filament. It handles edge cases like sidebar collisions and modals automatically.