2017 © Pedro Peláez
 

library sql-doctor

Quickly debugging the amount of database queries per request in Laravel.

image

squareboat/sql-doctor

Quickly debugging the amount of database queries per request in Laravel.

  • Sunday, October 15, 2017
  • by squareboat1
  • Repository
  • 2 Watchers
  • 56 Stars
  • 564 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 3 % Grown

The README.md

Debugging Database Queries

Quickly debugging the amount of database queries per request in Laravel., (*1)

sql-doctor example image, (*2)

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., (*3)

If you are using laravel 5.4, simply add the service provider to your project's config/app.php file:, (*4)

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., (*5)

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., (*6)

License

The MIT License. Please see License File for more information. Copyright © 2017 SquareBoat, (*7)

The Versions

27/01 2017

v1.1.x-dev

1.1.9999999.9999999-dev

Quickly debugging the amount of database queries per request in Laravel.

  Sources   Download

MIT

The Requires

 

by Amit Gupta

database laravel debug queries

27/01 2017

v2.0.x-dev

2.0.9999999.9999999-dev

Quickly debugging the amount of database queries per request in Laravel.

  Sources   Download

MIT

The Requires

 

by Amit Gupta

database laravel debug queries

26/01 2017

v1.1.0

1.1.0.0

Quickly debugging the amount of database queries per request in Laravel.

  Sources   Download

MIT

The Requires

 

by Amit Gupta

database laravel debug queries

06/12 2016

v1.0.0

1.0.0.0

Quickly debugging the amount of database queries per request in Laravel.

  Sources   Download

MIT

The Requires

 

by Amit Gupta

database laravel debug queries