Skip to content

Bump spatie/laravel-sluggable from 4.0.6 to 6.0.0 - #14

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/spatie/laravel-sluggable-6.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/spatie/laravel-sluggable-6.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 17, 2026

Copy link
Copy Markdown

Bumps spatie/laravel-sluggable from 4.0.6 to 6.0.0.

Release notes

Sourced from spatie/laravel-sluggable's releases.

6.0.0

Breaking changes

  • HasSlug and HasTranslatableSlug now implement resolveRouteBindingQuery(). Laravel's HasUuids and HasUlids define the same method, so UUID and ULID models must use one of the new combined traits instead, even when self-healing is disabled: HasSlugWithUuids, HasSlugWithUlids, HasTranslatableSlugWithUuids or HasTranslatableSlugWithUlids. See #322.
  • resolveRouteBindingQuery() has a Builder|Relation return type. Models overriding it need a compatible return type.
  • Apply a slug trait only once per model inheritance chain. Adding a slug trait again in a child of a slug-enabled base model can cause recursive route binding.
  • For self-healing translatable models, named slug bindings such as {post:slug} now match the slug of the current locale instead of comparing the entire JSON column.

What's new

  • Self-healing keys now work automatically in scoped route bindings and other query-based lookups, including scopeBindings(). The opt-in method from 5.0.1 is no longer needed. Parent relationship constraints, global scopes and soft-delete filtering stay in place. See #319.
  • Scoped and query-based lookups accept stale keys without redirecting. Ordinary implicit bindings keep their 308 redirects, and non-scoped named-column bindings such as {post:id} stay literal.
  • Malformed UUID and ULID identifiers in self-healing keys go through Laravel's identifier validation and return a 404 instead of reaching the database.
  • Named-column and trashed bindings keep the restrictions of a model's own resolveRouteBindingQuery().
  • The bundled Laravel Boost skill covers scoped bindings and the combined UUID and ULID traits.

Upgrading from 5.x

Update your Composer constraint to spatie/laravel-sluggable:^6.0 and follow the upgrade guide. PHP 8.4+ and Laravel 13 are still required. The URL format is unchanged, and no database migration or slug regeneration is needed.

Full changelog: spatie/laravel-sluggable@5.0.1...6.0.0

5.0.1

Fixes

  • Add opt-in support for self-healing keys in scoped route bindings and query-based lookups. Models can delegate resolveRouteBindingQuery() to the protected resolveSelfHealingRouteBindingQuery() helper without introducing a trait conflict with Laravel’s HasUuids or HasUlids. See #321 and #319.
  • Preserve parent relationship constraints, global scopes and soft-delete filtering. Query-based lookups accept stale keys without redirects; ordinary self-healing route bindings retain their 308 redirects.
  • Document the opt-in and UUID separator requirement. Existing applications do not change behavior until they opt in; PHP and Laravel requirements are unchanged.

Full changelog: spatie/laravel-sluggable@5.0.0...5.0.1

5.0.0

Breaking changes

  • Require PHP 8.4 or higher and Laravel 13. PHP 8.3 and Laravel 12 are no longer supported. See #318.
  • Package development now uses Pest 5 and Orchestra Testbench 11; CI covers PHP 8.4, 8.5 and 8.6.

Fixes

  • Restore named-column route binding for self-healing models, including soft-deleted models on routes that allow trashed bindings. Routes such as {post:id} and {post:slug} use Laravel column lookups; unnamed {post} bindings retain self-healing keys and stale-key 308 redirects. Thanks to @​skybleak333 in #320.
  • Scoped child binding and resolveRouteBindingQuery() behavior remain unchanged. This release does not resolve #319.

Upgrading from 4.x

Use PHP 8.4+ and Laravel 13, then update your Composer constraint to spatie/laravel-sluggable:^5.0. No application API changes are required beyond these platform requirements.

Full changelog: spatie/laravel-sluggable@4.0.6...5.0.0

Changelog

Sourced from spatie/laravel-sluggable's changelog.

6.0.0 - 2026-11-13

Breaking changes

  • HasSlug and HasTranslatableSlug now implement resolveRouteBindingQuery(). Laravel's HasUuids and HasUlids define the same method, so UUID and ULID models must use one of the new combined traits instead, even when self-healing is disabled: HasSlugWithUuids, HasSlugWithUlids, HasTranslatableSlugWithUuids or HasTranslatableSlugWithUlids. See #322.
  • resolveRouteBindingQuery() has a Builder|Relation return type. Models overriding it need a compatible return type.
  • Apply a slug trait only once per model inheritance chain. Adding a slug trait again in a child of a slug-enabled base model can cause recursive route binding.
  • For self-healing translatable models, named slug bindings such as {post:slug} now match the slug of the current locale instead of comparing the entire JSON column.

What's new

  • Self-healing keys now work automatically in scoped route bindings and other query-based lookups, including scopeBindings(). The opt-in method from 5.0.1 is no longer needed. Parent relationship constraints, global scopes and soft-delete filtering stay in place. See #319.
  • Scoped and query-based lookups accept stale keys without redirecting. Ordinary implicit bindings keep their 308 redirects, and non-scoped named-column bindings such as {post:id} stay literal.
  • Malformed UUID and ULID identifiers in self-healing keys go through Laravel's identifier validation and return a 404 instead of reaching the database.
  • Named-column and trashed bindings keep the restrictions of a model's own resolveRouteBindingQuery().
  • The bundled Laravel Boost skill covers scoped bindings and the combined UUID and ULID traits.

Upgrading from 5.x

Update your Composer constraint to spatie/laravel-sluggable:^6.0 and follow the upgrade guide. PHP 8.4+ and Laravel 13 are still required. The URL format is unchanged, and no database migration or slug regeneration is needed.

Full changelog: spatie/laravel-sluggable@5.0.1...6.0.0

5.0.1 - 2026-11-13

Fixes

  • Add opt-in support for self-healing keys in scoped route bindings and query-based lookups. Models can delegate resolveRouteBindingQuery() to the protected resolveSelfHealingRouteBindingQuery() helper without introducing a trait conflict with Laravel’s HasUuids or HasUlids. See #321 and #319.
  • Preserve parent relationship constraints, global scopes and soft-delete filtering. Query-based lookups accept stale keys without redirects; ordinary self-healing route bindings retain their 308 redirects.
  • Document the opt-in and UUID separator requirement. Existing applications do not change behavior until they opt in; PHP and Laravel requirements are unchanged.

Full changelog: spatie/laravel-sluggable@5.0.0...5.0.1

5.0.0 - 2026-11-13

Breaking changes

  • Require PHP 8.4 or higher and Laravel 13. PHP 8.3 and Laravel 12 are no longer supported. See #318.
  • Package development now uses Pest 5 and Orchestra Testbench 11; CI covers PHP 8.4, 8.5 and 8.6.

Fixes

  • Restore named-column route binding for self-healing models, including soft-deleted models on routes that allow trashed bindings. Routes such as {post:id} and {post:slug} use Laravel column lookups; unnamed {post} bindings retain self-healing keys and stale-key 308 redirects. Thanks to @​skybleak333 in #320.
  • Scoped child binding and resolveRouteBindingQuery() behavior remain unchanged. This release does not resolve #319.

Upgrading from 4.x

Use PHP 8.4+ and Laravel 13, then update your Composer constraint to spatie/laravel-sluggable:^5.0. No application API changes are required beyond these platform requirements.

Full changelog: spatie/laravel-sluggable@4.0.6...5.0.0

Commits
  • d0137c0 Merge pull request #322 from spatie/next-major/self-healing-bindings
  • 4ec12f5 Cover v6 scoped bindings and combined traits in the Boost skill
  • 4569cc2 Address v6 route binding review findings
  • 73e550a Update CHANGELOG
  • 61fee21 Write v6 documentation as released documentation
  • 4c9d472 Prepare v6 automatic self-healing query bindings
  • 730ae8d Keep documentation links within their selected version
  • 1ef74df Add opt-in self-healing query bindings
  • 3501fbc Update CHANGELOG
  • 1001b1c Merge pull request #320 from skybleak333/self-healing-explicit-binding-field
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [spatie/laravel-sluggable](https://github.com/spatie/laravel-sluggable) from 4.0.6 to 6.0.0.
- [Release notes](https://github.com/spatie/laravel-sluggable/releases)
- [Changelog](https://github.com/spatie/laravel-sluggable/blob/main/CHANGELOG.md)
- [Commits](spatie/laravel-sluggable@4.0.6...6.0.0)

---
updated-dependencies:
- dependency-name: spatie/laravel-sluggable
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Nov 17, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: dependencies, php. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants