/**
  * 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']);
     });
 }
Пример #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;
     });
 }
Пример #3
0
 /**
  * Set the session store implementation.
  *
  * @param \Illuminate\Session\SessionInterface $session
  * @return $this 
  * @static 
  */
 public static function setSessionStore($session)
 {
     //Method inherited from \Collective\Html\FormBuilder
     return \App\Services\Html\FormBuilder::setSessionStore($session);
 }