/** * Check if the Debugbar is enabled * * @return boolean * @static */ public static function isEnabled() { return \Barryvdh\Debugbar\LaravelDebugbar::isEnabled(); }
/** * @param LaravelDebugbar $debugBar */ public function setDebugBar(LaravelDebugbar $debugBar) { $this->debugBar = $debugBar->isEnabled() ? $debugBar : false; }