addappio / laravel-query-log by dimsav

Logs full mysql queries.
5,440
12
14
Package Data
Maintainer Username: dimsav
Package Create Date: 2015-03-04
Package Last Update: 2015-10-18
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-19 03:18:07
Package Statistics
Total Downloads: 5,440
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 12
Total Watchers: 14
Total Forks: 1
Total Open Issues: 1

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.