Skip to content

Latest commit

 

History

History
46 lines (25 loc) · 918 Bytes

README.md

File metadata and controls

46 lines (25 loc) · 918 Bytes

query-log

Software License

About

The query-log package to send query-log to console with extra info and catch query sql .

Installation

Require the cirelramos/query-log package in your composer.json and update your dependencies:

composer require cirelramos/query-log

Configuration

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

Usage

add provider in config/app.php

    'providers' => [
        CirelRamos\QueryLog\Providers\QueryLogProvider::class,
   ]

License

Released under the MIT License, see LICENSE.