Skip to content

Releases: whitecube/laravel-sluggable

Allow Laravel 8

27 Oct 10:47
ccd9ad1
Compare
Choose a tag to compare
v1.4.0

Allow Laravel 8

Generate unique slugs

06 Jul 08:13
Compare
Choose a tag to compare

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

03 Jun 13:40
Compare
Choose a tag to compare

Added the possibility to define a getRouteBindingQuery method on models implementing the HasSlug trait.

v1.2.4

28 Apr 14:59
Compare
Choose a tag to compare

Fixed broken release

v1.2.3

28 Apr 14:30
Compare
Choose a tag to compare

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

05 Mar 15:03
4ebb1e5
Compare
Choose a tag to compare

Slugs are not automatically generated when the attribute already contains a value.

v1.2.1

05 Mar 10:21
Compare
Choose a tag to compare

Fixed resolveRouteBinding method definition

v1.2.0 - Added Laravel 7 support

05 Mar 10:11
Compare
Choose a tag to compare
Merge branch 'master' of https://github.com/whitecube/laravel-sluggable

Fixed missing str_slug function

13 Feb 09:40
aa5ec26
Compare
Choose a tag to compare

The helper functions were removed from the Laravel core in version 6, so we need to require them.

v1.1.0

08 Feb 19:18
Compare
Choose a tag to compare
  • Trait & attributes names were updated
  • New feature: sluggable URL generator