addapp/laravel-query-log

Logs full mysql queries.
5,443 12
Install
composer require addapp/laravel-query-log
Latest Version:0.1.1
PHP:>=5.4.0
License:MIT
Last Updated:Oct 18, 2015
Links: GitHub  ·  Packagist
Maintainer: dimsav

laravel-query-log

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.

Related Packages

illuminated/db-profiler

Database Profiler for Laravel Web and Console Applications.

242,865 169
pedrofornaza/monolog-mysql

Laravel 5 MySQL driver for Monolog

2,177 2
libern/laravel-sql-logging

Laravel 5 package for logging SQL queries.

4,595 0
markhilton/monolog-mysql

Laravel 5 MySQL driver for Monolog

150,473 40
teepluss/monosql

Laravel 4 MySQL driver for Monolog

3,355 4