diff --git a/src/Core/Schema/Concerns/MatchesIds.php b/src/Core/Schema/Concerns/MatchesIds.php index a6f8d94..3aff70a 100644 --- a/src/Core/Schema/Concerns/MatchesIds.php +++ b/src/Core/Schema/Concerns/MatchesIds.php @@ -52,6 +52,16 @@ public function uuid(): self return $this->matchAs('[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}'); } + /** + * Mark the ID field as a ULID. + * + * @return $this + */ + public function ulid(): self + { + return $this->matchAs('[0-7][0-9a-hjkmnp-tv-zA-HJKMNP-TV-Z]{25}'); + } + /** * Set the pattern for the ID field. *