Skip to content

Commit b030c50

Browse files
committed
feat: add ulid method to identifier chapter
1 parent d6106a6 commit b030c50

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

3.0/schemas/identifier.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ field:
5555
ID::make()->uuid()
5656
```
5757

58+
If your model uses ULID, call the `ulid()` method when registering the `ID`
59+
field:
60+
61+
```php
62+
ID::make()->ulid()
63+
```
64+
5865
To use a custom pattern, call the `matchAs` method:
5966

6067
```php

0 commit comments

Comments
 (0)