squareboat / sql-doctor
Quickly debugging the amount of database queries per request in Laravel.
Installs: 1 428
Dependents: 0
Suggesters: 0
Security: 0
Stars: 57
Watchers: 5
Forks: 1
Open Issues: 0
Requires
- php: >=5.4.0
- illuminate/config: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
- illuminate/database: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
- illuminate/events: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
- illuminate/http: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
- illuminate/support: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
- symfony/debug: 2.8.*|3.0.*|3.1.*|~3.2|~3.3
This package is auto-updated.
Last update: 2024-11-04 16:55:26 UTC
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.
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