User friendly URI's with Laravel?

60 Views Asked by At

At this time, when I view a thread in my Laravel forum, the URL structure looks like this:

myforum.com/subforumname/1

Whereas 1 represents the id of the forum thread. Ideally, I want it to look like this instead:

myforum.com/subforumname/title-of-the-thread-28172

The number at the end should not be the id but a unique id consisting of a certain amount of characters instead, like websites usually do.

How would I go about this? Thank you!

0

There are 0 best solutions below