Laravel:启用调试工具栏

use*_*955 6 php debugging laravel-4

首先,让我非常清楚地说明我对Laravel来说是全新的; 我可能会遗漏一些完全基本的东西.

我正在尝试从https://github.com/barryvdh/laravel-debugbar获取调试工具栏.我按照说明操作并完成了以下操作:

composer require barryvdh/laravel-debugbar:1.x
Run Code Online (Sandbox Code Playgroud)

然后加

'Barryvdh\Debugbar\ServiceProvider',
Run Code Online (Sandbox Code Playgroud)

app/config/app.php
Run Code Online (Sandbox Code Playgroud)

然后

php artisan debugbar:publish
Run Code Online (Sandbox Code Playgroud)

我在app/config/app.php中的"debug"标志设置为true.

github上的文档说调试条输出应该在HTML body标签之前注入,但是当我在浏览器中执行"查看源代码"时,我看不到调试条输出和相关代码.

我错过了什么或做错了什么?

tho*_*olu 6

问题很可能是您的app/storage文件夹不可写.检查laravel日志中的错误.这解决了我.