Collective\Html\FormBuilder::setSessionStore PHP Method

setSessionStore() public method

Set the session store implementation.
public setSessionStore ( Illuminate\Session\SessionInterface $session )
$session Illuminate\Session\SessionInterface
    public function setSessionStore(SessionInterface $session)
    {
        $this->session = $session;
        return $this;
    }

Usage Example

Example #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['view'], $app['session.store']->getToken());
         return $form->setSessionStore($app['session.store']);
     });
 }
All Usage Examples Of Collective\Html\FormBuilder::setSessionStore