/** * 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']); }); }
/** * Allows user to set the novalidate option for every form generated with * the form open method, so developers can skin HTML5 validation, in order * to test backend validation in a local or development environment. * * @param null $value * @return bool|null * @static */ public static function novalidate($value = null) { return \Styde\Html\FormBuilder::novalidate($value); }