The query-log
package to send query-log to console with extra info and catch query sql .
Require the cirelramos/query-log
package in your composer.json
and update your dependencies:
composer require cirelramos/query-log
The defaults are set in config/query-log.php
. Publish the config to copy the file to your own config:
php artisan vendor:publish --provider="CirelRamos\QueryLog\Providers\ServiceProvider"
Note: this is necessary to you can change default config
add provider in config/app.php
'providers' => [
CirelRamos\QueryLog\Providers\QueryLogProvider::class,
]
Released under the MIT License, see LICENSE.