Last active
June 14, 2024 14:22
-
-
Save tangoslee/b74a11d2b85a6606b36bba7da1112cb4 to your computer and use it in GitHub Desktop.
[Laravel] Mocking Str::uuid()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$uuid = '253e0f90-8842-4731-91dd-0191816e6a28'; | |
Str::createUuidsUsing(fn() => Uuid::fromString($uuid)); | |
Str::uuid()->toString(); | |
Str::createUuidsNormally(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment