Call to undefined method Debugbar\\debugbar::info ()

Source: Internet
Author: User
Tags php error php error log

Using Laravel Debugging Tools Laravel-debugbar the Façade way Debugbar::info (), Debugbar::error () and other methods to print log messages, the page does not open, view the PHP error log errors: Call to und Efined method Debugbar\\debugbar::info ().

Be sure to follow the documentation on Https://github.com/barryvdh/laravel-debugbar and don't forget to perform composer Dump-autoload.

If you can't find the reason, the namespace reference may be wrong, change to


Use Barryvdh\debugbar\facade as Debugbar;

Call it again with a façade:

Debugbar::info (' Test debug Info ');

This time to find out, as shown in figure:

But this is a bit inconvenient to use, the components of the façade definition is a little strange, should not be defined as this, first of all, or define a global function, directly through the app (' Debugbar ') this way to call. it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.