Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5: Enable laravel-debugbar

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

like image 572
Steve Avatar asked May 03 '15 09:05

Steve


People also ask

How do I enable Debugbar?

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.

What is Debugger in Laravel?

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.


1 Answers

Try this command

php artisan config:clear 
like image 187
Łukasz D. Tulikowski Avatar answered Sep 16 '22 23:09

Łukasz D. Tulikowski