DEV Community

Discussion on: Custom identifiers with ApiPlatform

Collapse
 
devhammed profile image
Hammed Oyedele • Edited

In Laravel, I use timestamp-first UUID4 to make the database indexing and orderby works just like auto-incremented IDs.

Collapse
 
markopaden profile image
Marko Pađen

Depending on your use case, exposing timestamp (as date of creation) can be even worse than exposing incremental id. Of course, if your domain requirements are different, it is a perfectly good solution.