Collective\Html\FormBuilder::getSessionStore PHP Method

getSessionStore() public method

Get the session store implementation.
public getSessionStore ( ) : Illuminate\Session\SessionInterface
return Illuminate\Session\SessionInterface $session
    public function getSessionStore()
    {
        return $this->session;
    }

Usage Example

 /**
  * Get the MessageBag of errors that is populated by the
  * validator.
  *
  * @return \Illuminate\Support\ViewErrorBag
  */
 protected function getErrors()
 {
     $errors = $this->form->getSessionStore()->get('errors');
     if ($errors) {
         return $errors->getBag($this->errorBag);
     }
     return $errors;
 }
All Usage Examples Of Collective\Html\FormBuilder::getSessionStore