Skip to content

Commit 9f1a5e3

Browse files
committed
Document required_without.
1 parent d6e6abe commit 9f1a5e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

validation.md

+6
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ Below is a list of all available validation rules and their function:
154154
- [Required](#rule-required)
155155
- [Required If](#rule-required-if)
156156
- [Required With](#rule-required-with)
157+
- [Required Without](#rule-required-without)
157158
- [Same](#rule-same)
158159
- [Size](#rule-size)
159160
- [Unique (Database)](#rule-unique)
@@ -312,6 +313,11 @@ The field under validation must be present if the _field_ field is equal to _val
312313

313314
The field under validation must be present _only if_ the other specified fields are present.
314315

316+
<a name="rule-required-without"></a>
317+
#### required_without:_foo_,_bar_,...
318+
319+
The field under validation must be present _only when_ the other specified fields are not present.
320+
315321
<a name="rule-same"></a>
316322
#### same:_field_
317323

0 commit comments

Comments
 (0)