I'm upgrading an old procedural site to laravel 5.2, and I'm struggling with the old routes I made.
On this website, the routes were made like this : {user_slug}/{content_slug}.html
. For the moment, I use cviebrock/eloquent-sluggable to generate the slugs, but I'm open to another one if this one cannot meet my needs.
I have two questions :
- Can I make the
content-slug
unique, but per user ? - How can I write the route and the controller in order to match the correct user slug ad the correct content slug ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire