-
Install the package via Composer:
composer require uocnv/db-profiler
-
Publish config
php artisan vendor:publish --provider="Illuminated\Database\DbProfilerServiceProvider"
-
Use the
vvv
parameter for Web: -
Use the
-vvv
option for Console:
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
Laravel Database Profiler is open-sourced software licensed under the MIT license.