libern / laravel-sql-logging by libern

Laravel 5 package for logging SQL queries.
4,513
0
2
Package Data
Maintainer Username: libern
Maintainer Contact: libernlin@gmail.com (Libern Lin)
Package Create Date: 2016-01-26
Package Last Update: 2017-10-07
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-25 15:17:04
Package Statistics
Total Downloads: 4,513
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 4
Total Open Issues: 0

Laravel 5 SQL Logger

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"