supliu/laravel-query-monitor
最新稳定版本:1.0.3
Composer 安装命令:
composer require supliu/laravel-query-monitor
包简介
Laravel Query Monitor
README 文档
README
Supliu Laravel Query Monitor is library to monitoring Queries in real-time using Laravel Artisan Command. Basically it opens a socket listening and displays (on terminal) the queries executed in your Laravel application.
How to install
- Use composer to install this package
composer require --dev supliu/laravel-query-monitor
- Run publish command
php artisan vendor:publish --provider="Supliu\LaravelQueryMonitor\ServiceProvider"
How to use
Open you terminal and execute:
php artisan laravel-query-monitor
Now just perform some action in your application that performs some interaction with the database.
Customize
By default, the query listening service will run on host 0.0.0.0 and port 8081. You can customize both the host and the port by providing the optional arguments:
php artisan laravel-query-monitor --host="192.168.0.2" --port=8082
If you change the host and port parameters, you will also need to change the configuration file config/laravel-query-monitor.php.
License
The Laravel Query Monitor is open-sourced project licensed under the MIT license.
统计信息
- 总下载量: 109.85k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 286
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-27
