Log database queries into file.
- PHP >=
7.0
- Laravel =
5.4.*|5.5.*
Install package via composer
$ composer require lemberg/laravel-query-logs
'providers' => [
Lemberg\LaraveQueryLogs\ServiceProvider::class,
],
php artisan vendor:publish --provider="Lemberg\LaravelQueryLogs\ServiceProvider" --tag="config"
-
Add
QUERY_LOGS=true
to .env file. -
By default queries will store into
/storage/logs/sql.log
file.
You can change it by editing thepath
option inquery-log.php
file
Actually that's all:)
Please see License File for more information.