addappio / laravel-query-log by dimsav

Logs full mysql queries.
5,439
12
16
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-04-15 15:09:21
Package Statistics
Total Downloads: 5,439
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 12
Total Watchers: 16
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.