Skip to content

Form Validation: required_with and required_without implementations #1837

Description

@atishhamte

In the Form Validation Class, required_with and required_without are validation methods where the descriptions and implementation are for fields exist in $data or not.
But according to logic, it should be like,
[confirm_password => required_with[password]]
The confirm_password is required when the password is there in data and its value is non-empty

[email => required_without[mobile]]
The email is required when the mobile is there in data and its value is empty or blank

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions