定制 dainsys/clear-laravel-logs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dainsys/clear-laravel-logs

Composer 安装命令:

composer require dainsys/clear-laravel-logs

包简介

Clear Laravel log files

README 文档

README

Allows to list or delete all laravel...log logs files

Installation

  • Step 1: Add the following entry to your composer.json file:
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/Yismen/clear-laravel-logs.git"
        }
    ]
  • Step 2: Run composer require dainsys/clear-laravel-logs command to install as a dependency
  • Step 3: The Package should be auto-discovered by Laravel. However, you could all register it in your config.app file within the providers array:
        'providers' => [
            Dainsys\ClearLogs\ClearLogsServiceProvider::class,
        ]

Ussage

  • To just list the log files, run without any argument:
    • php artisan dainsys:laravel-logs
  • To remove all existing log files, pass the --clear flag
    • php artisan dainsys:laravel-logs --clear
  • By default, the last 8 files are keept. To override the number of files to preserve, update the --keep flag
    • php artisan dainsys:laravel-logs --clear --keep=0
  • By default, the package search for any file starting with 'laravel-'. To override, pass the desired starting file name as an option
    • php artisan dainsys:laravel-logs new_file_name --clear

统计信息

  • 总下载量: 496
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固