Skip to content

Commit 45c0c63

Browse files
shaedrichtaylorotwell
authored andcommitted
Add documentation about version constraint to validation docs (laravel#10012)
* Add documentation about version constraint to validation docs * Update validation.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 04dfa4e commit 45c0c63

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
@@ -1987,6 +1987,12 @@ The field under validation must be a valid [Universally Unique Lexicographically
19871987

19881988
The field under validation must be a valid RFC 9562 (version 1, 3, 4, 5, 6, 7, or 8) universally unique identifier (UUID).
19891989

1990+
You may also validate that the given UUID matches a UUID specification by version:
1991+
1992+
```php
1993+
'uuid' => 'uuid:4'
1994+
```
1995+
19901996
<a name="conditionally-adding-rules"></a>
19911997
## Conditionally Adding Rules
19921998

0 commit comments

Comments
 (0)