Take a look at this package: https://github.com/webpatser/laravel-uuid.
EDIT:
You can also use the base_convert functionality that PHP offers
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a shopping website where each product within a shop has its own page. I don't want to have the url for each product as slug like "/p/the-best-laptop". I want to generate random value like the way Instagram or other sites are doing for example "/p/BT3VQ5yA0mx/". What is the right way to do it and be sure that each url will be unique.
Please advice
Please or to participate in this conversation.