Esempio n. 1
0
 /**
  * Register the form builder instance.
  * @return void
  */
 protected function registerFormBuilder()
 {
     $this->app->singleton('form', function ($app) {
         $form = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken(), str_random(40));
         return $form->setSessionStore($app['session.store']);
     });
 }
Esempio n. 2
0
 /**
  * Checks if macro is registered.
  *
  * @param string $name
  * @return bool 
  * @static 
  */
 public static function hasMacro($name)
 {
     //Method inherited from \Illuminate\Html\FormBuilder
     return \October\Rain\Html\FormBuilder::hasMacro($name);
 }