/** * Called when a validation exception is thrown by the command handler. * * @param ValidationException $e * * @return mixed */ public function onValidationFailure(ValidationException $e) { return Redirect::action(UserController::class . '@profile')->withInput()->withErrors($e->getValidationErrors()); }
/** * Handler for when the installation has failed as a result of validation. * * @return mixed */ public function onValidationFailure(ValidationException $exception) { return Redirect::back()->withInput()->withErrors($exception->getValidationErrors()); }
/** * Called when a validation exception is thrown by the command handler. * * @param \Tectonic\Application\Validation\ValidationException $e * * @return $this */ public function onValidationFailure(ValidationException $e) { return redirect()->action('home')->withInput()->withErrors($e->getValidationErrors()); }