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?
You can enable or disable the debugbar during run time. \Debugbar::enable(); \Debugbar::disable();
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 .
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.
The problem is most likely, that your app/storage
folder is not writable. Check the laravel log for errors. This solved it for me.
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'.
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