xabou / sql-dumper by xabou

Laravel SQL Queries Dumper
870
1
1
Package Data
Maintainer Username: xabou
Maintainer Contact: bouzopoulos@gmail.com (xabou)
Package Create Date: 2017-01-31
Package Last Update: 2020-01-11
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 03:17:16
Package Statistics
Total Downloads: 870
Monthly Downloads: 2
Daily Downloads: 1
Total Stars: 1
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Laravel SQL Dumper

Display SQL queries executed for current page.

Installation

1. Require via composer

Add the xabou/sql-dumper Composer dependency to your project.

composer require xabou/sql-dumper

2. Register Service Provider

Open config/app.php and append providers array with:

Xabou\SqlDumper\SqlDumperServicePRovider::class

Configuration

Publish Dumper's configuration file to enable\disable it .

php artisan vendor:publish --tag=sql-dumper-config

A config file with name sql-dumper.php will be created.

return [

    /*
   |--------------------------------------------------------------------------
   | Feature Flag
   |--------------------------------------------------------------------------
   |
   | Here you can enable\disable dumper.
   |
   */

    'enabled' => true,
];

Usage

Enable dumper through config file and see every SQL query executed for current page.

Note: Dumper will only render queries in any non production environment.

##License

This package is released under the MIT License.