Which is best way in laravel 9 app to check programatically if Debugbar(and its functions are available) installed in current installation ?
Thanks!
Which is best way in laravel 9 app to check programatically if Debugbar(and its functions are available) installed in current installation ?
Thanks!
2
Answers
try running
$debugbarIsInstalled = class_exists(Debugbar::class)
when return true means Debugbar is installed
You can use the bound method to see if it’s bound to the Laravel container.