Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Sep. 5th 2017

Let's Build A Forum with Laravel and TDD: A Thread Should Have a Unique Slug: Part 1

Episode 75 Run Time 7:25

Download

So far we've been using the id of each thread as the URI identifier. However, in many cases, regardless of the app you're building, you may not want to expose your primary keys in this way. Instead, let's switch over to a slug-based approach.