Download the PHP package mangodev/filament-revive without Composer
On this page you can find all versions of the php package mangodev/filament-revive. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mangodev/filament-revive
More information about mangodev/filament-revive
Files in mangodev/filament-revive
Package filament-revive
Short Description A 'RecycleBin' page where users can restore or delete permanently soft-deleted models.
License MIT
Homepage https://github.com/MangoDevMG/filament-revive
Informations about the package filament-revive
Filament RecycleBin for Laravel Models
Filament Revive is a plugin for Filament that brings a central Recycle Bin to your application. It lets you restore or permanently delete soft-deleted Eloquent models in just a few clicks.
This plugin is especially useful for SaaS applications, admin dashboards, or any multi-user platform where recovering accidentally deleted data is important.
Features
- View, restore, and permanently delete soft-deleted records from a dedicated Filament page
- Register multiple models as "Recyclable" with a simple trait
- Filter items by model type or search through deleted records
- Customize the plugin’s appearance and behavior with ease
Installation
Install the package via Composer:
If you prefer to manually publish and run the migrations:
Configuration
Register the plugin in your panel:
You can also customize the plugin using fluent configuration:
⚠️ The plugin currently supports only one models namespace.
If you want to register a third-party model (e.g., from another package), create a wrapper class that extends it and add theRecyclable
trait there:
Usage
Once the plugin is installed and configured, you’ll see a new page in your Filament sidebar.
From there, users can restore deleted data or permanently remove it.
1. Add the Recyclable
trait to any soft-deletable model
ℹ️ Important: Adding the
Recyclable
trait without usingSoftDeletes
will throw an exception.
2. Optional: Discover existing soft-deleted records
If you already have soft-deleted records before installing the plugin, you’ll soon be able to “discover” them by running:
🧪 This command is planned for version 1.
Use the table outside the default page
You don’t have to register the plugin in your panel to use the table.
Instead, you can render the Livewire component directly in a Blade view:
This is ideal if:
- You don’t want to clutter your navigation
- You’re not using Filament Panels but still want a recycle bin in your app
Changelog
See CHANGELOG for a list of recent changes.
Contributing
See CONTRIBUTING for guidelines.
Credits
- Ilainiriko Tambaza
- mintellity/laravel-recycle-bin — inspiration for this package
- All Contributors
License
This project is open-sourced under the MIT license.
See LICENSE.md for more details.
All versions of filament-revive with dependencies
filament/filament Version ^3.0
filament/forms Version ^3.0
filament/tables Version ^3.0
illuminate/contracts Version ^12.0|^11.0|^10.0
illuminate/database Version *
illuminate/support Version *
spatie/laravel-package-tools Version ^1.15.0