laravel 通知中 uuid 背后的原因是什么

What is the reason behind uuid in laravel notifications

通知系统中的id是uuid是什么原因?

通知 table 使用 UUID,因为它们可以更好地适应大型应用程序和分布式数据库。由于它们不一定是连续的,因此它们也不受数据库列类型限制。

Here is a description 直接来自 laravel 使用的 ramsey/uuid 库:

Anyone can create a UUID and use it to identify something with reasonable confidence that the same identifier will never be unintentionally created by anyone to identify something else. Information labeled with UUIDs can therefore be later combined into a single database without needing to resolve identifier (ID) conflicts.