caendesilva/laravel-blogkit

Creating a post with the same title as an existing post route prevents it from being accessed

Closed this issue · 0 comments

For example, if one creates a post named "Create", the slug generated is /posts/create, which is reserved for the post creation page. While this will not impact most real world scenarios, since a one-word title is not very meaningful, it is easy to fix by adding a validation check to see if the slug matches a reserved resource route.