libern/laravel-sql-logging

Laravel 5 package for logging SQL queries.

dev-master / 1.0.x-dev 2017-10-07 08:26 UTC

This package is auto-updated.

Last update: 2024-04-09 02:32:08 UTC


README

Laravel 5 package for logging SQL queries.

Install

Require this package with composer using the following command:

composer require libern/laravel-sql-logging

Or just add libern/laravel-sql-logging to your composer.json file:

{
    "require": {
        "libern/laravel-sql-logging": "dev-master"
    }
}

After updating composer, add the service provider to the providers array in config/app.php

"Libern\SqlLogging\SqlLoggingServiceProvider",

You can also publish the config file to enable/disable the logging.

php artisan vendor:publish --provider="Libern\SqlLogging\SqlLoggingServiceProvider"