edofre / laravel-softdelete-cleanup
Console command to cleanup your database from softdeleted models
V1.3.0
2020-08-31 15:18 UTC
Requires
- php: >=5.6.4
- laravel/framework: 5.3.*|5.4.*
Requires (Dev)
- orchestra/testbench: ~3.2.0|~3.3.0
- phpunit/phpunit: ^5.0
This package is auto-updated.
Last update: 2024-12-04 16:19:30 UTC
README
Installation
The preferred way to install this extension is through composer.
To install, either run
$ php composer.phar require edofre/laravel-softdelete-cleanup
or add
"edofre/laravel-softdelete-cleanup": "V1.3.0"
to the require
section of your composer.json
file.
Executing
The following command will then remove all the trashed items from the User, note that the User model is not in the default namespace.
php artisan db:softdelete-cleanup App\\Models\\User
Tests
Run the tests by executing the following command:
composer test
Feature requests
- Set the number of days from which the items should be deleted
- ?