rodrigopedra/laravel-query-logger
Laravel query logger
12,279
11
| Install | |
|---|---|
composer require rodrigopedra/laravel-query-logger |
|
| Latest Version: | v8.0.0 |
| PHP: | ^8.3 |
| Laravel: | 12 · 13 |
| Older releases: | 5 – 11 |
| License: | MIT |
| Last Updated: | Mar 25, 2026 |
| Links: | GitHub · Packagist |
Maintainer: rodrigo.pedra
Query Logger for Laravel
- for Laravel versions 5.0 and 5.1 use the 1.0 release
- for Laravel versions from 5.2 to 7.x with PHP < 7.4 use 2.x release
Writes all queries to the log when APP_DEBUG=true.
This package tries to replace the bindings with their values so SQL queries becomes easier to debug.
Installation
composer require rodrigopedra/laravel-query-logger --dev
Configuration
As releases 3.x+ requires at least Laravel version 5.5, the service provider should be configured automatically using Laravel's package auto-discovery.
If you are not using pakacge auto-discovery, you will need to add the provider to your config/app.php:
// in your config/app.php add the provider to the service providers array
'providers' => [
/* ... */
'RodrigoPedra\QueryLogger\QueryLoggerServiceProvider',
]
License
This package is open-sourced software licensed under the MIT license
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
641,106,524
9,700
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v8.0.0 | ^8.3 | ^12.0| | MIT | |
| v7.2.0 | ^8.2 | ^11.0| | MIT | |
| v7.1.0 | ^8.2 | ^11.0| | MIT | |
| v7.0.0 | ^8.2 | ^11.0| | MIT | |
| v6.2.0 | ^8.1 | ^10.0| | MIT | |
| v6.1.0 | ^8.1 | ^10.0 | MIT | |
| v6.0.0 | ^8.1 | ^10.0 | MIT | |
| v5.2.0 | ^8.0 | ^9.0 | MIT | |
| v5.1.1 | ^8.0 | ^9.0 | MIT | |
| v5.1.0 | ^8.0 | ^9.0 | MIT | |
| v5.0.0 | ^8.0 | ^9.0 | MIT | |
| v4.5.0 | >=7.4 | ^6.20.14| | MIT | |
| v4.4.0 | >=7.4 | ^6.20.14| | MIT | |
| v4.3.0 | >=7.4 | ^6.20.14| | MIT | |
| v4.2.0 | >=7.4 | ^6.20.14| | MIT | |
| v4.1.1 | >=7.4 | ^6.20.14| | MIT | |
| v4.1.0 | >=7.4 | ^6.20.14| | MIT | |
| v4.0.0 | >=7.4 | ^6.20.14| | MIT | |
| v3.2.0 | >=7.4 | ^5.5| | MIT | |
| v3.1.1 | >=7.4 | ^5.5| | MIT | |
| v3.1.0 | >=7.4 | ^5.5| | MIT | |
| v3.0.0 | >=7.4 | ^5.5| | MIT | |
| v2.5.0 | >=5.4 | ^5.2| | MIT | |
| v2.4.0 | >=5.4 | ^5.2| | MIT | |
| 2.3.0 | >=5.4 | ^5.2| | MIT | |
| 2.2.0 | >=5.4 | ^5.2| | MIT | |
| v2.1.0 | >=5.4 | ^5.2| | MIT | |
| v2.0.2 | >=5.4 | ^5.2| | MIT | |
| v2.0.1 | >=5.4 | ^5.2| | MIT | |
| v2.0 | >=5.4 | ^5.2| | MIT |
Showing the latest 30 of 32. See every release on Packagist