@Uuid()
New in 2.0Generate UUID-based IDs
ID GenerationSince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| withoutSeparator | — | — | Include separators ("-"), default true |
Usage
@Uuid()Generate UUID without separators
Example:
@Uuid()
Output:
JIDLOIFIUDASNVHDLODGHYGONLKDHKP@Uuid(arg0)Generate UUID with separators
Example:
@Uuid(true)
Output:
JIDLO-IFIUD-ASNVH-DLODG-HYGON-LKDHKP