Skip to content

Commit

Permalink
[9.x] Add ascii and ulid validation rules (#8397)
Browse files Browse the repository at this point in the history
* add `ascii` and `ulid` validation rules

* Update validation.md

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
hafezdivandari and taylorotwell committed Dec 15, 2022
1 parent 812cd68 commit 21b95cd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions validation.md
Expand Up @@ -806,6 +806,7 @@ Below is a list of all available validation rules and their function:
[Alpha Dash](#rule-alpha-dash)
[Alpha Numeric](#rule-alpha-num)
[Array](#rule-array)
[Ascii](#rule-ascii)
[Bail](#rule-bail)
[Before (Date)](#rule-before)
[Before Or Equal (Date)](#rule-before-or-equal)
Expand Down Expand Up @@ -883,6 +884,7 @@ Below is a list of all available validation rules and their function:
[Unique (Database)](#rule-unique)
[Uppercase](#rule-uppercase)
[URL](#rule-url)
[ULID](#rule-ulid)
[UUID](#rule-uuid)

</div>
Expand Down Expand Up @@ -956,6 +958,11 @@ When additional values are provided to the `array` rule, each key in the input a

In general, you should always specify the array keys that are allowed to be present within your array.

<a name="rule-ascii"></a>
#### ascii

The field under validation must be entirely 7-bit ASCII characters.

<a name="rule-bail"></a>
#### bail

Expand Down Expand Up @@ -1635,6 +1642,11 @@ The field under validation must be uppercase.

The field under validation must be a valid URL.

<a name="rule-ulid"></a>
#### ulid

The field under validation must be a valid [Universally Unique Lexicographically Sortable Identifier](https://github.com/ulid/spec) (ULID).

<a name="rule-uuid"></a>
#### uuid

Expand Down

0 comments on commit 21b95cd

Please sign in to comment.