addapp / laravel-query-log
Logs full mysql queries.
Installs: 5 441
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 14
Forks: 1
Open Issues: 1
Requires
- php: >=5.4.0
- laravel/framework: ~4.2
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:
The queries logged are valid mysql queries!
Credits
Credits go to the people answering this stackoverflow question.