addapp/laravel-query-log

Logs full mysql queries.

Maintainers

Package info

github.com/addappio/laravel-query-log

pkg:composer/addapp/laravel-query-log

Statistics

Installs: 5 443

Dependents: 0

Suggesters: 0

Stars: 12

Open Issues: 1

0.1.1 2015-08-28 14:36 UTC

This package is not auto-updated.

Last update: 2026-03-01 01:35:30 UTC


README

This is a service provider fully logging all mysql queries.

Installation

composer require addapp/laravel-query-log "~0.1" --dev

Add the service provider to a NON-PRODUCTION config file:

// config/local/app.php

return [

    'providers' => append_config([
        'Addapp\QueryLog\QueryLogServiceProvider'

    ]),

]

Result

Run php artisan tail and watch:

image 2015-03-13 at 15 40 07

The queries logged are valid mysql queries!

Credits

Credits go to the people answering this stackoverflow question.