Esempio n. 1
0
 /**
  * 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());
 }
Esempio n. 2
0
 /**
  * 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;
 }
Esempio n. 3
0
 /**
  * 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());
 }
Esempio n. 4
0
 /**
  * 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());
 }
Esempio n. 5
0
 /**
  * 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());
 }