validationMessages($data)) { throw new ValidateException(back()->withInput()->withErrors($validationMessages)); } if (($response = $this->prepare($data)) instanceof Response) { throw new ValidateException($response); } return $this->prepareInsert($this->updates); } }