rodrigopedra / laravel-query-logger
Laravel query logger
Installs: 10 666
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^8.1
- ext-pdo: *
- illuminate/contracts: ^10.0|^11.0
- illuminate/database: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
- psr/log: ^1|^2|^3
This package is auto-updated.
Last update: 2024-10-31 00:20:51 UTC
README
- 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