Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compare fields? #19

Open
GameBear64 opened this issue Feb 27, 2023 · 0 comments
Open

Can't compare fields? #19

GameBear64 opened this issue Feb 27, 2023 · 0 comments

Comments

@GameBear64
Copy link

It would be very useful for password and confirm password fields. Or for example, a field called salary and then a field called desiredSalary that has a minimum of the salary field.

You might mention fields like $fieldName or @fieldName.

Here is an example for the idea

{
  password: 'required|min:8',
  confirmPassword: 'required|equals:$password',
  salary: 'numeric',
  desiredSalary: 'numeric|min:$salary'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant