首页 > 其他 > 详细

Laravel笔记之Call to undefined method DebugBar\DebugBar::warning()

时间:2016-08-16 13:17:46      阅读:314      评论:0      收藏:0      [点我收藏+]

使用Laravel Debugbar (Integrates PHP Debug Bar)调试信息报错。

Debugbar::warning(‘Watch out…‘);

报错信息如下:

Call to undefined method DebugBar\DebugBar::warning()

 技术分享

phpStorm工具只能导入包,在导入DebugBar的时候出的问题,导入的是其他的DebugBar的包,所以错误。将命名空间改成:

use Barryvdh\Debugbar\Facade as Debugbar;//命名空间引用

 

不拒打赏:

 技术分享  技术分享

微信

支付宝

Laravel笔记之Call to undefined method DebugBar\DebugBar::warning()

原文:http://www.cnblogs.com/toxufe/p/5776031.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!