Skip to content

Commit 21b95cd

Browse files
[9.x] Add ascii and ulid validation rules (#8397)
* add `ascii` and `ulid` validation rules * Update validation.md Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 812cd68 commit 21b95cd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

validation.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ Below is a list of all available validation rules and their function:
806806
[Alpha Dash](#rule-alpha-dash)
807807
[Alpha Numeric](#rule-alpha-num)
808808
[Array](#rule-array)
809+
[Ascii](#rule-ascii)
809810
[Bail](#rule-bail)
810811
[Before (Date)](#rule-before)
811812
[Before Or Equal (Date)](#rule-before-or-equal)
@@ -883,6 +884,7 @@ Below is a list of all available validation rules and their function:
883884
[Unique (Database)](#rule-unique)
884885
[Uppercase](#rule-uppercase)
885886
[URL](#rule-url)
887+
[ULID](#rule-ulid)
886888
[UUID](#rule-uuid)
887889

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

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

961+
<a name="rule-ascii"></a>
962+
#### ascii
963+
964+
The field under validation must be entirely 7-bit ASCII characters.
965+
959966
<a name="rule-bail"></a>
960967
#### bail
961968

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

16361643
The field under validation must be a valid URL.
16371644

1645+
<a name="rule-ulid"></a>
1646+
#### ulid
1647+
1648+
The field under validation must be a valid [Universally Unique Lexicographically Sortable Identifier](https://github.com/ulid/spec) (ULID).
1649+
16381650
<a name="rule-uuid"></a>
16391651
#### uuid
16401652

0 commit comments

Comments
 (0)