0

I have debugbar installed, and it is showing up. However, whenever I try to send a message to the console:

use Debugbar\Debugbar;
....
Debugbar::info('this is info');

I get this error:

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

I have the following in my app.php:

'providers' =>
Barryvdh\Debugbar\ServiceProvider::class,
'aliases' => 
'Debugbar' => Barryvdh\Debugbar\Facade::class

A similar question was asked here but after following all the advice in the discussion, the problem still persists. If I try to call to call Debugbar like this:

app('debugbar')->error('Watch out..');

There is no error, but the message still does not appear

2
  • What happens when you return dd(new Debugbar)? Make sure to include alias, use Debugbar. Commented Feb 23, 2017 at 20:25
  • Thanks for the help. I walked away from my computer for an hour came back, and it worked. Nothing had changed! I still have no idea why. Perhaps caching had something to do with it? Commented Feb 23, 2017 at 22:08

1 Answer 1

2

Change use Debugbar\Debugbar; to use Debugbar;

Sign up to request clarification or add additional context in comments.

1 Comment

Its not an either or situation. This is definitely one of the errors!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.