lemberg / laravel-query-logs
Installs: 1 107
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 12
Forks: 0
Open Issues: 1
Requires
- php: >=7.2.5
- laravel/framework: 6.*.*
This package is auto-updated.
Last update: 2024-10-27 19:45:10 UTC
README
Log database queries into file.
Requirements
- PHP >=
7.0
- Laravel =
5.4.*|5.5.*
Getting Started
Install package via composer
$ composer require lemberg/laravel-query-logs
Register Service Provider (Only for Laravel 5.4)
'providers' => [
Lemberg\LaraveQueryLogs\ServiceProvider::class,
],
Publish Configuration File
php artisan vendor:publish --provider="Lemberg\LaravelQueryLogs\ServiceProvider" --tag="config"
Usage
-
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:)
License
Please see License File for more information.