Skip to content

Commit

Permalink
Document "ends_with" rule (laravel#5183)
Browse files Browse the repository at this point in the history
This is in conjunction with PR [#28455](laravel/framework#28455) to the framework.
  • Loading branch information
jasonmccreary authored and gdebrauwer committed Jun 20, 2019
1 parent 89b0412 commit 215d4a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ Below is a list of all available validation rules and their function:
[Dimensions (Image Files)](#rule-dimensions)
[Distinct](#rule-distinct)
[E-Mail](#rule-email)
[Ends With](#rule-ends-with)
[Exists (Database)](#rule-exists)
[File](#rule-file)
[Filled](#rule-filled)
Expand Down Expand Up @@ -744,6 +745,11 @@ When working with arrays, the field under validation must not have any duplicate

The field under validation must be formatted as an e-mail address.

<a name="rule-ends-with"></a>
#### ends_with:_foo_,_bar_,...

The field under validation must end with one of the given values.

<a name="rule-exists"></a>
#### exists:_table_,_column_

Expand Down

0 comments on commit 215d4a9

Please sign in to comment.