Skip to content

Commit 27f43d7

Browse files
baptistepottierfranmomu
authored andcommitted
fix on documentation about slug attribute and unique property
on slug annotation, when property "unique" is true, it become suffixed and not prefixed
1 parent c136a93 commit 27f43d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/sluggable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ echo $article->getSlug();
271271

272272
- **fields** (required, default=[]) - list of fields for slug
273273
- **updatable** (optional, default=true) - **true** to update the slug on sluggable field changes, **false** - otherwise
274-
- **unique** (optional, default=true) - **true** if slug should be unique and if identical it will be prefixed, **false** - otherwise
274+
- **unique** (optional, default=true) - **true** if slug should be unique and if identical it will be suffixed, **false** - otherwise
275275
- **unique_base** (optional, default=null) - used in conjunction with **unique**. The name of the entity property that should be used as a key when doing a uniqueness check.
276276
- **separator** (optional, default="-") - separator which will separate words in slug
277277
- **prefix** (optional, default="") - prefix which will be added to the generated slug

0 commit comments

Comments
 (0)