addapp/laravel-query-log

Logs full mysql queries.

0.1.1 2015-08-28 14:36 UTC

This package is not auto-updated.

Last update: 2024-12-21 19:09:34 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.