darwinnatha/purge-logs
最新稳定版本:v1.0
Composer 安装命令:
composer require darwinnatha/purge-logs
包简介
a simple package for deleting logs by keeping those at a given period
README 文档
README
This package allows you to delete logs, keeping only those from a given period.
Installation
To install this package, you should add the package to your project via Composer.
composer require darwinnatha/pure-logs
Usage
To use this package, publish the configuration file.
php artisan vendor:publish --provider="Darwinnatha\PurgeLogs\PurgeLogsServiceProvider"
Then, you can purge the logs by running the following command.
php artisan logs:purge
Alternatively, if you want to specify the number of days to retain, you can use the keep-days argument.
php artisan logs:purge --keep-days=7
Configuration
You can configure the number of days to retain by editing the config/purge-logs.php file.
return [ 'retention_period' => 7, ];
统计信息
- 总下载量: 159
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-06