Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AbdallahSabri's avatar

Moving user id to uuid

I'm building a rest api using laravel passport, everything is OK, but I don't want the user id to be incremental, I need id to be UUID, does this conversion reflects on laravel functionality like getting user from request $request->user() or $request->id() ?

0 likes
2 replies
stefanbauer's avatar

Take care about limitations given at the database level. You have to do some manual work when working with UUIDs which you don't have to do when using increments.

Please or to participate in this conversation.