edofre/laravel-softdelete-cleanup
Composer 安装命令:
composer require edofre/laravel-softdelete-cleanup
包简介
Console command to cleanup your database from softdeleted models
README 文档
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
- ?
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-02