cirelramos/query-log

this package has utils to send console query generate in your project laravel

1.0.1 2022-04-09 02:46 UTC

This package is auto-updated.

Last update: 2024-05-09 07:50:58 UTC


README

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.