Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel: enabling debug toolbar

First of all, let me state very clearly that I'm completely new to Laravel; I may be missing something totally basic.

I'm trying to get the debug toolbar from https://github.com/barryvdh/laravel-debugbar to work. I've followed the instructions and have done the following:

composer require barryvdh/laravel-debugbar:1.x

then add

'Barryvdh\Debugbar\ServiceProvider',

to

app/config/app.php

and then

php artisan debugbar:publish

My "debug" flag in app/config/app.php is set to true.

The docs on github say that the debugbar output should be injected just before the HTML body tag, however I see no debugbar output and no relevant code when I do a "view source" in my browser.

What am I missing or doing wrong?

like image 424
user13955 Avatar asked Jul 22 '14 23:07

user13955


People also ask

How do I enable the debugging bar?

You can enable or disable the debugbar during run time. \Debugbar::enable(); \Debugbar::disable();

How do I enable debug mode in laravel?

Enable or disable debug mode using app. Open the app. php file located in your config/app. php laravel project. Search for debug key and change true to enable debug mode and false for disabling debug mode default it will show false .

What is laravel Debugbar?

The Laravel Debugbar by Barry vd. Heuvel is a package that allows you to quickly and easily keep tabs on your application during development. With a simple installation and powerful features, the Debugbar package is one of the cornerstone packages for Laravel.


2 Answers

The problem is most likely, that your app/storage folder is not writable. Check the laravel log for errors. This solved it for me.

like image 93
tholu Avatar answered Oct 09 '22 01:10

tholu


As mentioned, one problem could be folder/file permissions for app/storage.

Other solution could be the name of your environment folder.

Unless you are doing unit testing you shouldn't name your environment folder 'testing' (config/testing) or 'tests'.

like image 44
Sigismund Avatar answered Oct 09 '22 00:10

Sigismund