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

uddin9live's avatar

slug(string $title, string $separator = '-') how to make unique friendly url

slug(string $title, string $separator = '-') Generate a URL friendly "slug" from a given string.

i got this but i did not test it yet. but i think this laravel helper wont make unique url ?

how can i make unique url , (1) need to check database if it is exist then (2) make this unique , will i add timestamp to make it unique or any other easy way to do that

please share what do you think

0 likes
1 reply

Please or to participate in this conversation.