uuid() public static method

Returns Version 4 UUID format: xxxxxxxx-xxxx-4xxx-Yxxx-xxxxxxxxxxxx where x is any random hex digit and Y is a random choice from 8, 9, a, or b.
See also: http://stackoverflow.com/questions/2040240/php-function-to-generate-v4-uuid
public static uuid ( ) : string
return string
示例#1
0
 public function testGenerateUUID()
 {
     isNotSame(Str::uuid(), Str::uuid());
     isNotSame(Str::uuid(), Str::uuid());
     isNotSame(Str::uuid(), Str::uuid());
 }