0

I'm asking you because i didn't found somewhere best way to use some unique value for CRUD operations without using id into PHP application. It's about one table which contain more data from different users, and i don't want to show id which entry data belongs another user.

I thought of using a new column named "hash" and this hash i putted on form with hidden input. I'm using Laravel framework. Or it's good to use uuid and cuid? Can someone tell me if my solution is the best or if exist a better solution, please?

Best regards, Alexandru

1 Answers1

0

There will be many ways to do this, but my approach for this solution is uuid ( universally unique identifier) you can use it as a primary key and also use the auto-generating function to generate a unique UUID

MANSOOR KOCHY
  • 370
  • 2
  • 9