/** * Run the validation check, will call laravels validator. * * @return boolean */ public function check() { if ($this->preCheck() === false) { return false; } $this->lastValidator = $this->validation->make($this->getInput(), $this->getRules(), $this->getFailedMessages()); if ($this->lastValidator->fails()) { $this->request->getSessionStore()->flash('errors', $this->lastValidator->getMessageBag()); $this->request->flashOnly(array_keys($this->selectInput(false))); return false; } return true; }
/** * Get the Illuminate session store implementation. * * @return \Illuminate\Session\Store * @throws \RuntimeException * @static */ public static function getSessionStore() { return \Illuminate\Http\Request::getSessionStore(); }