diff --git a/readme.md b/readme.md index 641b00f4..ec276904 100644 --- a/readme.md +++ b/readme.md @@ -78,7 +78,9 @@ php artisan vendor:publish For Lumen, register a different Provider in `bootstrap/app.php`: ``` -$app->register(Barryvdh\Debugbar\LumenServiceProvider::class); +if (env('APP_DEBUG')) { + $app->register(Barryvdh\Debugbar\LumenServiceProvider::class); +} ``` To change the configuration, copy the file to your config folder and enable it: