Skip to content

Commit

Permalink
Merge pull request #6522 from timacdonald/multiple_of
Browse files Browse the repository at this point in the history
[8.x] Add multiple_of validation rule
  • Loading branch information
taylorotwell committed Oct 25, 2020
2 parents 805e8d3 + d7c4b33 commit 5d46f36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions validation.md
Expand Up @@ -650,6 +650,7 @@ Below is a list of all available validation rules and their function:
[MIME Types](#rule-mimetypes)
[MIME Type By File Extension](#rule-mimes)
[Min](#rule-min)
[Multiple Of](#multiple-of)
[Not In](#rule-not-in)
[Not Regex](#rule-not-regex)
[Nullable](#rule-nullable)
Expand Down Expand Up @@ -999,6 +1000,11 @@ A full listing of MIME types and their corresponding extensions may be found at

The field under validation must have a minimum _value_. Strings, numerics, arrays, and files are evaluated in the same fashion as the [`size`](#rule-size) rule.

<a name="multiple-of"></a>
#### multiple_of:_value_

The field under validation must be a multiple of _value_. This can be useful when validating a number input that utilises the `step` attribute.

<a name="rule-not-in"></a>
#### not_in:_foo_,_bar_,...

Expand Down

0 comments on commit 5d46f36

Please sign in to comment.