New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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
Laravel:4
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

itelmenko/laravel-mysql-logger

Laravel MySQL driver for Monolog

158,082 21
ebethus/laravel-mysql-log-driver

Laravel 10+ MySQL driver for Monolog

4,015 0
kitloong/laravel-app-logger

Laravel log for your application

1,461,919 10
mihai-valentin/laravel-order-by-field

A simple Laravel `Query\Builder` extension that adds MySQL-like "order by field"...

22,321 3
crysalead/sql-dialect

SQL query builder.

13,274 6

Version History

Version Released PHP Laravel License
0.1.1 >=5.4.0 ~4.2 MIT
0.1 >=5.4.0 ~4.2 MIT