rodrigopedra/laravel-query-logger

Laravel query logger
12,044 11
Install
composer require rodrigopedra/laravel-query-logger
Latest Version:v8.0.0
PHP:^8.3
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

brandworks/querylogger

Trace or log your (slow) queries in Laravel 4

63 2
vlados/laravel-blade-crawler-detect

Boost Lighthouse and PageSpeed scores by hiding cookie banners, chat widgets and...

5,439 0
andhikamaheva/date

A date library to help you work with dates in different languages

13 1