isEnabled() public method

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