Console command to cleanup your database from softdeleted models
edofre/laravel-softdelete-cleanup is a Laravel package for console command to cleanup your database from softdeleted models.
It currently has 3 GitHub stars and 26 downloads on Packagist (latest version V1.3.0).
Install it with composer require edofre/laravel-softdelete-cleanup.
Discover more Laravel packages by edofre
or browse all Laravel packages to compare alternatives.
Last updated
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.
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
Run the tests by executing the following command:
composer test