azgasim/filament-unsaved-changes-modal
filament/panel-actions:unsaved-changes) to intercept navigation attempts.composer require and service provider registration. No custom JavaScript or complex middleware needed.unsaved-changes event, reducing the need for custom logic.livewire:navigate, test for race conditions during rapid navigation (e.g., multiple unsaved forms).livewire:navigate) vs. full-page reloads? Performance impact may vary.>=3.0.0 required).composer require azgasim/filament-unsaved-changes-modal
php artisan vendor:publish --tag="filament-unsaved-changes-modal-config"
app/Providers/Filament/AdminPanelProvider.php:
->plugins([
\AzGasim\FilamentUnsavedChangesModal\FilamentUnsavedChangesModalPlugin::make(),
]);
unsaved_changes_modal.title).livewire:navigate).window.location).filament/panel-actions:unsaved-changes).livewire:navigate is not being overridden by other packages.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Filament major version upgrade | Package breaks | Test in staging before production upgrade. |
| Custom JavaScript overrides events | Modal fails to trigger | Audit frontend code for event conflicts. |
| SPA race conditions | Modal flickers or misfires | Debounce navigation events. |
| Browser polyfill limitations | Reload/tab close prompts ignored | Set user expectations; no technical fix. |
| Theme/style conflicts | Modal looks broken | Override via Filament’s theme system. |
How can I help you explore Laravel packages today?