0

How do I have to set my routes in a way that pages can not be accessed anymore with simple ids, but only with friendly_ids?

I do not want that people are able to access a certain page just entering the id of the object.

EXAMPLE:

I do want to access a model only like this:

example.com/model/slug

But it should not be possible to access it like this:

example.com/model/id

Jamie Bull
  • 12,889
  • 15
  • 77
  • 116

0 Answers0