edofre / laravel-file-cleanup
控制台命令,用于清理存储中的旧文件
V1.0.0
2020-08-29 14:25 UTC
Requires
- php: >=7.2
- laravel/framework: 6.*|7.*
Requires (Dev)
- orchestra/testbench: ~3.2.0|~3.3.0
- phpunit/phpunit: ^5.0
This package is auto-updated.
Last update: 2024-08-29 05:16:16 UTC
README
安装
安装此扩展的首选方式是通过 composer。
要安装,请运行
$ php composer.phar require edofre/laravel-file-cleanup
或者将以下内容添加到您的 composer.json
文件的 require
部分:
"edofre/laravel-file-cleanup": "V1.0.0"
example_command
示例命令
以下命令将从您的 {disk} 中删除指定 {directory} 中超过 {days} 天的文件
php artisan db:file-cleanup {directory} {days=14} {disk=local}
功能请求
- 测试