Laravel 5: Enable laravel-debugbar Laravel 5: Enable laravel-debugbar php php

Laravel 5: Enable laravel-debugbar


Try this command

php artisan config:clear


The installation instructions at https://github.com/barryvdh/laravel-debugbar#installation recommend setting the application debug mode to true. Also make sure, that you do not disable the debugbar in config/debugbar.php by setting the enabled=false > If I were you I would simply remove it. ( The debugbar won't work, event if the application itself is in debug mode )

Another suggestion

As far as I know the .env.example file should be renamed to .env and all apropriate variables should be set. In my case it always contains lines like this:

APP_ENV=localAPP_DEBUG=true`

Within the config/app.php file the debug value should be read from the environment variable.

return [    /* some other config values here... */    'debug' => env('APP_DEBUG'),]

Note, that it should also be possible to simply set the value to true without using the environment based configuration values.

Maybe you can test it by manually calling \Debugbar::enable(); in one of your routes and debugging afterwards.

Hope this helps.


I have had the same trouble, and it is usually solved clearing route caching.

php artisan route:clear

It seemed to be an issue which was already fixed, and you can find about it in the repository issue #287, but I'm still finding it from time to time.