squareboat/sql-doctor
Composer 安装命令:
composer require squareboat/sql-doctor
包简介
Quickly debugging the amount of database queries per request in Laravel.
README 文档
README
Quickly debugging the amount of database queries per request in Laravel.
Install
Install via composer
For Laravel <= 5.3, please use the 1.1 branch!
$ composer require squareboat/sql-doctor
Configure Laravel
If you are using laravel 5.5 or higher you should skip this step.
If you are using laravel 5.4, simply add the service provider to your project's config/app.php file:
Service Provider
SquareBoat\SqlDoctor\SqlDoctorServiceProvider::class,
Usage
Now while your app.debug is set true then on any URL you can append ?sql-doctor=1 and get an output of complete list of queries that ran.
| Query Param | Value | Output |
|---|---|---|
| sql-doctor | 1 | Default query |
| sql-doctor | 2 | Binds values to their parameters in the query. |
Credits
SQL Doctor, originally developed after the reddit thread by magkopian.
License
The MIT License. Please see License File for more information. Copyright © 2017 SquareBoat
统计信息
- 总下载量: 1.45k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 57
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-03
