Laravel 5:启用laravel-debugbar [英] Laravel 5: Enable laravel-debugbar
问题描述
我正在使用Laravel 5,并且想使用barryvdh/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.
我做了以下事情:
安装:
composer require barryvdh/laravel-debugbar
将以下几行添加到config/app.php
Add the following lines to the config/app.php
'Barryvdh\Debugbar\ServiceProvider',
'Debugbar' => 'Barryvdh\Debugbar\Facade',
我进一步执行:
php artisan vendor:publish
会在config文件夹中生成debugbar.php文件.
which generates the debugbar.php file within the config folder.
有什么想法可能会丢失吗?
Any ideas what could be missing?
谢谢
更新:
我重新进行了Laravel 5的安装,并安装了调试栏,该调试栏运行得很好,并向我展示了调试栏.执行artisan命令后:
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
和
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
推荐答案
尝试此命令
php artisan config:clear
这篇关于Laravel 5:启用laravel-debugbar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!