阅读(1777) (21)

Laravel 8 Str::orderedUuid() {#collection-method}

2021-07-03 16:54:19 更新

Str::orderedUuid 方法用于生成一个「时间戳优先」的 UUID ,它可作为数据库索引列的有效值:

use Illuminate\Support\Str;

return (string) Str::orderedUuid();