Skip to content

Commit cc06dbe

Browse files
Add documentation about version constraint to validation docs (#10012)
* Add documentation about version constraint to validation docs * Update validation.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 1ee7342 commit cc06dbe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

validation.md

+6
Original file line numberDiff line numberDiff line change
@@ -1887,6 +1887,12 @@ The field under validation must be a valid [Universally Unique Lexicographically
18871887

18881888
The field under validation must be a valid RFC 4122 (version 1, 3, 4, or 5) universally unique identifier (UUID).
18891889

1890+
You may also validate that the given UUID matches a UUID specification by version:
1891+
1892+
```php
1893+
'uuid' => 'uuid:4'
1894+
```
1895+
18901896
<a name="conditionally-adding-rules"></a>
18911897
## Conditionally Adding Rules
18921898

0 commit comments

Comments
 (0)