Is there any way to disable the debugbar by default and enable it dynamically in the middleware?
When in AppServiceProvider boot I add Debugbar::disable();
and then in the middleware in the condition I add Debugbar::enable();
it does not work.
Replacing config('debugbar.enabled')
doesn't work either.
Is it possible to do?