예제 #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']);
     });
 }
예제 #2
0
 /**
  * Set the session store implementation.
  *
  * @param \Illuminate\Session\Store $session
  * @return $this 
  * @static 
  */
 public static function setSessionStore($session)
 {
     //Method inherited from \Illuminate\Html\FormBuilder
     return \October\Rain\Html\FormBuilder::setSessionStore($session);
 }