This is a service provider fully logging all mysql queries.
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'
]),
]
Run php artisan tail
and watch:
The queries logged are valid mysql queries!
Credits go to the people answering this stackoverflow question.