diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasVersion7Uuids.php b/src/Illuminate/Database/Eloquent/Concerns/HasVersion7Uuids.php new file mode 100644 index 000000000000..455bf74aa576 --- /dev/null +++ b/src/Illuminate/Database/Eloquent/Concerns/HasVersion7Uuids.php @@ -0,0 +1,20 @@ +assertInstanceOf(UuidInterface::class, Str::uuid()); $this->assertInstanceOf(UuidInterface::class, Str::orderedUuid()); + $this->assertInstanceOf(UuidInterface::class, Str::uuid7()); } public function testAsciiNull() @@ -1354,7 +1355,7 @@ public function testItCanSpecifyASequenceOfUuidsToUtilise() { Str::createUuidsUsingSequence([ 0 => ($zeroth = Str::uuid()), - 1 => ($first = Str::uuid()), + 1 => ($first = Str::uuid7()), // just generate a random one here... 3 => ($third = Str::uuid()), // continue to generate random uuids...