dazza-dev/pulse-duplicate-queries 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

dazza-dev/pulse-duplicate-queries

最新稳定版本:v1.0.0

Composer 安装命令:

composer require dazza-dev/pulse-duplicate-queries

包简介

Laravel Pulse Duplicate Queries provides a ready-to-use list of duplicate queries for your Laravel application.

README 文档

README

PulseDuplicateQueriesPreview

A Laravel Pulse recorder and card package designed to monitor and visualize database query duplication per HTTP request.

Installation

Require the package with Composer:

composer require dazza-dev/pulse-duplicate-queries

Register the recorder

Right now, in each request, the system will check how many queries are being executed and how many of them are duplicated. To run the checks you must add the DuplicatedQueriesRecorder to the config/pulse.php file.

    'recorders' => [
        \DazzaDev\PulseDuplicateQueries\Recorders\DuplicateQueriesRecorder::class => [
            'enabled' => env('PULSE_DUPLICATED_QUERIES_BY_REQUEST_ENABLED', true),
            'sample_rate' => env('PULSE_DUPLICATED_QUERIES_BY_REQUEST_SAMPLE_RATE', 1)
        ],
    ]

You also need to be running the pulse:check command.

Add to your dashboard

To add the card to the Pulse dashboard, you must first publish the vendor view.

Then, you can modify the resources/views/vendor/pulse/dashboard.blade.php file:

<livewire:duplicate-queries cols='4' rows='2' />

Contributions

Contributions are welcome. If you find any bugs or have ideas for improvements, please open an issue or send a pull request. Make sure to follow the contribution guidelines.

Author

Laravel Batch Validation was created by DAZZA.

License

This project is licensed under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固