Releases: whitecube/laravel-sluggable
Allow Laravel 8
v1.4.0 Allow Laravel 8
Generate unique slugs
This release fixes the generation of slugs to make them unique. If a slug already exists, it will add an incremented number at the end.
Example : this-slug-already-exists-1
New feature: custom route binding query
Added the possibility to define a getRouteBindingQuery
method on models implementing the HasSlug
trait.
v1.2.4
Fixed broken release
v1.2.3
Fixed slug generation when slug contains object with null keys.
Example: if the slug attribute contained a json with null values, like this
{
"fr": null,
"en": null
}
The package would not generate slugs, thinking it already had existing ones set.
Now it does, but only for the locales that have a null value. For example:
{
"fr": null,
"en": "my-slug"
}
Will only auto-generate the "fr"
slug.
v1.2.2 - Bug Fix
Slugs are not automatically generated when the attribute already contains a value.
v1.2.1
Fixed resolveRouteBinding method definition
v1.2.0 - Added Laravel 7 support
Merge branch 'master' of https://github.com/whitecube/laravel-sluggable
Fixed missing str_slug function
The helper functions were removed from the Laravel core in version 6, so we need to require them.
v1.1.0
- Trait & attributes names were updated
- New feature: sluggable URL generator