From d35bb52c84adcbf11808f068c028dec848c1d926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=A4drich?= <11225821+shaedrich@users.noreply.github.com> Date: Sun, 3 Nov 2024 22:52:30 +0100 Subject: [PATCH 1/2] Add documentation about version constraint to validation docs --- validation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/validation.md b/validation.md index a1aaa7b3681..471e31ea436 100644 --- a/validation.md +++ b/validation.md @@ -1887,6 +1887,12 @@ The field under validation must be a valid [Universally Unique Lexicographically The field under validation must be a valid RFC 4122 (version 1, 3, 4, or 5) universally unique identifier (UUID). +You can also limit the given UUID to a specific version: + +```php +'uuidV4' => 'uuid:4' +``` + ## Conditionally Adding Rules From c5053cd10989c6e62761598a2f7eecdc42366b42 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 5 Nov 2024 10:47:14 +1000 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 471e31ea436..907fa095699 100644 --- a/validation.md +++ b/validation.md @@ -1887,10 +1887,10 @@ The field under validation must be a valid [Universally Unique Lexicographically The field under validation must be a valid RFC 4122 (version 1, 3, 4, or 5) universally unique identifier (UUID). -You can also limit the given UUID to a specific version: +You may also validate that the given UUID matches a UUID specification by version: ```php -'uuidV4' => 'uuid:4' +'uuid' => 'uuid:4' ```