Recycle bin implementation for Laravel with Livewire.
Add this repository to your composer.json
file:
{
"repositories": [
{
"type": "github",
"url": "https://github.com/mintellity/laravel-recycle-bin.git"
}
]
}
You can install the package via composer:
composer require mintellity/laravel-recycle-bin
Publish the config file with:
php artisan vendor:publish --tag="laravel-recycle-bin-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="laravel-recycle-bin-views"
This package relies on Eloquents SoftDeletes
trait. If you haven't already, add it to your models and migrations.
Add each model you want to be able to recycle to the recycle_bin.models
config array.
return [
'recycle-models' => [
App\Models\User::class,
],
];
You can now use the RecycleBin
-Livewire-component to restore or force delete your models.
<livewire:recycle-bin::recycle-bin />
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.