Skip to content

Undo Toast

Every delete, restore, edit or detach shows a toast with a countdown and an Undo button, or Ctrl+Z. Hard deletes come back with their relations. Free and open source.

Year
2026
Built with
Filament 4 & 5, Livewire, Alpine.js
Undo Toast: Undo for delete, edit and detach in Filament

Undo Toast for Filament

Why I built it

Confirmation modals get clicked through without being read. An undo button that stays for a few seconds after the action protects people better and slows them down less. Gmail figured this out years ago.

What it does

  • A toast after every delete, restore, edit and detach, with a countdown and an Undo button. Ctrl+Z or Cmd+Z works too
  • Soft deletes are restored the normal way
  • Hard deletes are put back from a full copy of the row, relations included
  • Edits roll back only the columns that changed
  • Detach restores the pivot rows
  • Your own actions can become undoable with a custom strategy

You can set the duration, position and how many toasts stack, and opt actions in or out one by one. Undo data sits encrypted in your cache store (Redis, database or file), and only the user who did the action can undo it. Dark mode, RTL and 23 languages are included.

Install

bash
composer require hoceineel/filament-undo-toast

Supports Filament 4 and 5. The code is on GitHub and the listing is on the Filament plugins directory.