hoceineel/filament-undo-toast
A Laravel Filament package that adds undoable toast notifications, letting users instantly reverse destructive actions like deletes. Customize messages, durations, and actions to make admin workflows safer and more forgiving.
BelongsToMany, HasMany, HasOne, MorphMany, MorphOne) in the same transaction. That turns "are you sure?" friction into recoverable action, which is a product decision about how much we trust operators versus how much we gate them.mod+z, failure states announced as alerts) is the kind of detail teams routinely under-scope and then ship badly in-house. Adopting this is a cheap way to buy a polished interaction instead of speccing one.->replaceSuccessNotification(false) or a closure). That's a decision about notification noise and operator attention, not just styling.SECURITY.md, Dependabot with cooldown and SHA-pinned Actions signals a maintainer investing in longevity — relevant when deciding whether to depend on it for a multi-quarter roadmap.Consider it when:
Look elsewhere when:
SECURITY.md.For executives: A small, focused add-on for our admin tooling that makes deleting things recoverable instead of merely confirmed. It removes a class of "I deleted the wrong record" incidents and the support tickets and rework that follow, including restoring linked records like pivot and child rows, not just the one record. It ships translated into 23 languages with correct grammar for our non-English teams, meets accessibility expectations including Windows High Contrast, and is backed by an automated end-to-end test suite and a published security policy. The cost is adoption and a small ongoing dependency; the alternative is building and maintaining equivalent interaction, localisation and accessibility work ourselves.
For engineering: One trait or a per-action configuration, opt-out available via ->replaceSuccessNotification(false) or a closure so we don't lose bespoke notifications. Relation restoration runs in the same transaction and only inserts missing rows, so it's safe to call on partially-restored data. A Testbench workbench and Playwright suite run in CI, so we can validate behaviour before rollout rather than eyeballing toasts. Language files are keyed and covered by a test that checks placeholders and plural rendering per locale.
For design/UX: The interaction has been through a design review pass — progress line inside the rounded corners, stable stack height and tint, aligned Undo affordances, persistent failure states, touch-friendly stack fan-out, will-change scoped to motion only. We get a considered pattern rather than a component we style from scratch, and it keeps Filament's visual language.
How can I help you explore Laravel packages today?