0

im using cviebrock / eloquent-sluggable to make slug, but as they said in their documentation:

"For example, if you have two blog posts and both are called "My Blog Post", then they will both sluggify to "my-blog-post" By setting unique to true, then the second Post model will sluggify to "my-blog-post-2". If there is a third post with the same title, it will sluggify to "my-blog-post-3" and so on. Each subsequent model will get an incremental value appended to the end of the slug, ensuring uniqueness." slugable doc

there's anyway to make the first blog post have a suffix too?

0 Answers0