public static function unique($prefix = 'unique'): string
    {
        $prefix = rtrim(trim($prefix), '-');
        $random = random_int(10000000, 99999999);

        $result = $random;
        if ($prefix) {
            $result = $prefix . '-' . $random;
        }

        return $result;
    }
public static function unique($prefix = 'unique'): string
    {
        $prefix = rtrim(trim($prefix), '-');
        $random = random_int(10000000, 99999999);

        $result = $random;
        if ($prefix) {
            $result = $prefix . '-' . $random;
        }

        return $result;
    }
public static function unique ( $ prefix = 'unique' ) : string { $ prefix = rtrim ( trim ( $ prefix ) , '-' ) ; $ random = random_int ( 10000000 , 99999999 ) ; $ result = $ random ; if ( $ prefix ) { $ result = $ prefix . '-' . $ random ; } return $ result ; }
Get unique string

@param  string $prefix
@return string
Get unique string