/** * Register the Form Builder instance. */ protected function registerFormBuilder() { $this->app['form'] = $this->app->share(function ($app) { $this->loadConfigurationOptions(); $form = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken(), $this->getTheme()); $form->novalidate($app['config']->get('html.novalidate', false)); return $form->setSessionStore($app['session.store']); }); }
/** * Set the session store implementation. * * @param \Illuminate\Session\Store $session * @return $this * @static */ public static function setSessionStore($session) { //Method inherited from \Collective\Html\FormBuilder return \Styde\Html\FormBuilder::setSessionStore($session); }