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
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
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-22