nguyenhiep/db-profiler

Database Profiler for Laravel Web and Console Applications.


README

  1. Install the package via Composer:

    composer require nguyenhiep/db-profiler:v1.2
  2. Publish config

    php artisan vendor:publish --provider="Illuminated\Database\DbProfilerServiceProvider"
  3. Use the vvv parameter for Web:

    Laravel Database Profiler - Demo - Web Laravel Database Profiler - Demo - Ajax request

  4. Use the -vvv option for Console:

    Laravel Database Profiler - Demo - Console

Local by default

Enabled only for the local environment, so you don't have to worry about production.

If you want to force profiling for non-local environments - specify it explicitly in your .env file:

DB_PROFILER_FORCE=true

License

Laravel Database Profiler is open-sourced software licensed under the MIT license.