addHelperFunction('auth', function () { return Auth::getInstance(); }); $this->addHelperFunction('widget', function ($name, $options = null) { return Widget::create($name, $options); });