From 4f86f3aec12197d23479411b8b543ac77330962a Mon Sep 17 00:00:00 2001 From: Hafez Divandari Date: Tue, 13 Dec 2022 00:33:31 +0330 Subject: [PATCH 1/2] add `ascii` and `ulid` validation rules --- validation.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/validation.md b/validation.md index eacbae6749..c19f20cee4 100644 --- a/validation.md +++ b/validation.md @@ -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) @@ -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) @@ -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. + +#### ascii + +The field under validation must be entirely 7 bit ASCII characters. + #### bail @@ -1635,6 +1642,11 @@ The field under validation must be uppercase. The field under validation must be a valid URL. + +#### ulid + +The field under validation must be a valid Universally Unique Lexicographically Sortable Identifier (ULID). + #### uuid From 41a1cc640be25e86c9893dadbf5b03c46e3e1054 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 15 Dec 2022 09:24:10 -0600 Subject: [PATCH 2/2] Update validation.md --- validation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validation.md b/validation.md index c19f20cee4..71ea356d99 100644 --- a/validation.md +++ b/validation.md @@ -961,7 +961,7 @@ In general, you should always specify the array keys that are allowed to be pres #### ascii -The field under validation must be entirely 7 bit ASCII characters. +The field under validation must be entirely 7-bit ASCII characters. #### bail @@ -1645,7 +1645,7 @@ The field under validation must be a valid URL. #### ulid -The field under validation must be a valid Universally Unique Lexicographically Sortable Identifier (ULID). +The field under validation must be a valid [Universally Unique Lexicographically Sortable Identifier](https://github.com/ulid/spec) (ULID). #### uuid