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

filter_if: Option? #38

Open
inpariswithyou opened this issue Jul 29, 2019 · 1 comment
Open

filter_if: Option? #38

inpariswithyou opened this issue Jul 29, 2019 · 1 comment

Comments

@inpariswithyou
Copy link

Laravel validation has a required_if:field,value... Is there any option like that for the filters?

(The use case here has to do with postal codes. I want to run a custom ZIP validator I wrote only if the country = 'USA', but I can't think of a way to do this.

If there is no option for something like this, is there a way to pass another field to a custom filter? Then I could pass the country and just do an if there...

@toksdotdev
Copy link

It would be of great help if this could be possible.

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

2 participants