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

[9.x] Add exclude_with validation rule #41691

Merged

Conversation

a-bashtannik
Copy link
Contributor

Add exclude_with validation rule to exclude an attribute if another one presents.
An inverse validation rule of existing exclude_without.

Example:

A mouse field needs to be excluded from the request if cat presents.
A upload_file field needs to be excluded from the request if user prefers to fetch the file directly by url.

@a-bashtannik a-bashtannik changed the title Add exclude_with validation rule [9.x] Add exclude_with validation rule Mar 26, 2022
@taylorotwell taylorotwell merged commit dc2eb97 into laravel:9.x Mar 28, 2022
a-bashtannik added a commit to a-bashtannik/docs that referenced this pull request Mar 29, 2022
The merged pull request laravel/framework#41691 adds a new `exlcude_with` validation rule in v9.0
taylorotwell pushed a commit to laravel/docs that referenced this pull request Mar 29, 2022
The merged pull request laravel/framework#41691 adds a new `exlcude_with` validation rule in v9.0
chu121su12 pushed a commit to chu121su12/framework that referenced this pull request Apr 5, 2022
* Add exclude_with validation rule (laravel#41686)

* Fix code style
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

Successfully merging this pull request may close these issues.

2 participants