I'm using Laravel 5 and would like to use the barryvdh/laravel-debugbar. After the installation and configuration the bar is not showing.
I did the following:
Installation:
composer require barryvdh/laravel-debugbar
Add the following lines to the config/app.php
'Barryvdh\Debugbar\ServiceProvider', 'Debugbar' => 'Barryvdh\Debugbar\Facade',
Further I execute:
php artisan vendor:publish
which generates the debugbar.php file within the config folder.
Any ideas what could be missing?
Thank you
UPDATE:
I made a fresh Laravel 5 installation and installed the debugbar which works perfectly and showed my the debugbar. After executing the artisan commands:
php artisan cache:clear
and
php artisan config:cache
the debugbar is not visible anymore. I think this was also my problem of the previous question. Any ideas why this happens and how I can make the debugbar revisible?Thank you
You can enable or disable the debugbar during run time. \Debugbar::enable(); \Debugbar::disable(); NB. Once enabled, the collectors are added (and could produce extra overhead), so if you want to use the debugbar in production, disable in the config and only enable when needed.
One of the often-used queries is Laravel Debug. It is an application, which is a part of the Laravel Framework, that helps the developer to keep a tab on the errors and bugs that may appear during the development phase. It is a handy tool since it points out the errors while the application is being developed.
Try this command
php artisan config:clear
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With