public function __construct(Application $app) { if ($app->bound('debugbar')) { $this->debugbar = $app['debugbar']; } else { $this->debugbar = null; } }