/** * 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()); }