Inheritance: extends Collective\Html\FormBuilder
 /**
  * Register the form builder instance.
  */
 protected function registerFormBuilder()
 {
     $this->app->bindShared('form', function ($app) {
         $form = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken());
         return $form->setSessionStore($app['session.store']);
     });
 }
Ejemplo n.º 2
0
 /**
  * Register the form builder instance.
  */
 protected function registerFormBuilder()
 {
     $this->app->singleton('form', function ($app) {
         $formBuilder = new FormBuilder($app['html'], $app['url'], view(), $app['session.store']->getToken());
         $formBuilder->setSessionStore($app['session.store']);
         return $formBuilder;
     });
 }
Ejemplo n.º 3
0
 /**
  * Dynamically handle calls to the class.
  *
  * @param string $method
  * @param array $parameters
  * @return \Illuminate\Contracts\View\View|mixed 
  * @throws \BadMethodCallException
  * @static 
  */
 public static function componentCall($method, $parameters)
 {
     //Method inherited from \Collective\Html\FormBuilder
     return \App\Services\Html\FormBuilder::componentCall($method, $parameters);
 }
Ejemplo n.º 4
0
 /**
  * Checks if macro is registered.
  *
  * @param string $name
  * @return bool 
  * @static 
  */
 public static function hasMacro($name)
 {
     //Method inherited from \Collective\Html\FormBuilder
     return \App\Services\Html\FormBuilder::hasMacro($name);
 }