lemberg/laravel-query-logs
Laravel Query Logs
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=trueto .env file. -
By default queries will store into
/storage/logs/sql.logfile.
You can change it by editing thepathoption inquery-log.phpfile
Actually that's all:)
License
Please see License File for more information.
Related Packages
muhdfaiz/laravel-tail-db
Provide artisan command to monitor realtime database query executed from the app...
28,358
58
coolonce/logger-interface
This package allows you to send data for logging to the HTTP daemon associated w...
4,640
1
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 6.0.1 | >=7.2.5 | 6.*.* | MIT | |
| 6.0.0 | >=7.2.5 | 6.*.* | MIT | |
| 1.0.2 | >=7.0.0 | 5.4.*| | MIT | |
| 1.0.1 | >=7.0.0 | 5.4.*| | Apache-2.0 | |
| 1.0.0 | >=7.0.0 | 5.4.*| | Apache-2.0 |