编程的日常

使用Str::orderedUuid()时报错

laravel5.6 直接使用Str::orderedUuid()时报错

1
Cannot call Ramsey\Uuid\Converter\Number\DegradedNumberConverter::toHex without support for large integers, since integer is an unsigned 128-bit integer; Moontoast\Math\BigNumber is required.

解决办法安装Moontoast\Math

1
composer require "moontoast/math"

hosts 文件位置

window 位置:C:\Windows\System32\drivers\etc

Mac OS 位置:/Private/etc

以上