| Package Data | |
|---|---|
| Maintainer Username: | edofre |
| Maintainer Contact: | edofre@gmail.com (Edo Freriks) |
| Package Create Date: | 2017-02-02 |
| Package Last Update: | 2020-09-04 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 03:15:23 |
| Package Statistics | |
|---|---|
| Total Downloads: | 26 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 3 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
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.2.0"
to the require section of your composer.json file.
Add the console command to the $commands array in your /app/Console/Kernel.php
protected $commands = [
\Edofre\SoftdeleteCleanup\SoftdeleteCleanup::class,
];
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