Skip to content

lemberg/laravel-query-logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Bohdan Khrupa
Jan 15, 2020
5d35a6a · Jan 15, 2020

History

13 Commits
Apr 11, 2018
Apr 11, 2018
Apr 11, 2018
May 23, 2018
May 23, 2018
Jan 15, 2020

Repository files navigation

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

  1. Add QUERY_LOGS=true to .env file.

  2. By default queries will store into /storage/logs/sql.log file.
    You can change it by editing the path option in query-log.php file

Actually that's all:)

License

Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages