Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Unsaved Changes Modal Laravel Package

azgasim/filament-unsaved-changes-modal

Replaces Filament's browser confirmation dialog with a native Filament modal when leaving a dirty form. Works with SPA and full-page navigation, using the same dirty-state rules as unsavedChangesAlerts(). Requires Filament 5.3.5+ and PHP 8.2+.

View on GitHub
Deep Wiki
Context7
1.0.2

Added French (fr) translation support for the unsaved changes modal.

Thanks to @OlinB for the contribution!

1.0.1

Added Kurdish Sorani (ckb) translation support for the unsaved changes modal.

Thanks to @Hamoi1 for the pull request.

1.0.0
  • Require filament/filament ^5.3.5 (patched filament/tables; avoids Composer security audit blocks on older 5.x under prefer-lowest).
  • Filament v5 plugin: modal instead of browser confirm() for unsaved navigation (SPA and same-origin panel links).
  • data-skip-unsaved-changes-modal on <a> or ancestor to skip the modal.
  • Fluent API: modalWidth(), modalIcon(), modalIconColor(), stayButtonColor(), leaveButtonColor(); HeroiconResolver; DEFAULT_* and MODAL_DOM_ID.
  • English and German translations (navigation.* keys).
  • FilamentUnsavedChangesModalPlugin is final; make() uses new self.
  • PHPStan: drop config/ from scanned paths (package config removed).
  • Breaking: removed published config/unsaved-changes-modal.php — configure via plugin only.
  • Safer link handling for non-http(s) hrefs and same-origin checks; defensive error handling in the script.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core