/** * 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()); }
/** * Handler for when the installation has failed as a result of validation. * * @return mixed */ public function onValidationFailure(ValidationException $exception) { print_r($exception->getFailedFields()); throw $exception; }
/** * 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()); }
/** * 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()); }
/** * Called when a validation exception is thrown by the command handler. * * @param ValidationException $e * @return mixed */ public function onValidationError(ValidationException $e) { return Redirect::action(HomeController::class . '@index')->withInput()->withErrors($e->getValidator()); }