spatie/laravel-sluggable
An opinionated package to create slugs for Eloquent models observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 94
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 32.0
- age_days: 3906
- days_rel: 36
- days_push: 36
- n_releases_24m: 11
Adoption not part of the score
1556 stars · 191 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Laravel package that automatically generates unique, URL-friendly slugs for Eloquent models when they are created or updated. It supports a #[Sluggable] attribute or HasSlug trait, translatable slugs, and self-healing URLs that redirect stale slugs with a 308.
Use cases
- generate url slugs for laravel models
- create seo-friendly urls from titles in laravel
- ensure unique slugs for eloquent records
- make slugs that survive model renames with redirects
- generate per-locale slugs for multilingual laravel apps
- bind laravel routes by slug instead of id
When to choose
- you use Laravel/Eloquent and want automatic, unique slug generation
- you need translatable slugs for multilingual content
- you want self-healing URLs so renamed content doesn't break links
When to avoid
- you don't use Laravel or Eloquent
- you need full control over slug generation outside the package's opinionated defaults
- you're on PHP < 8.3 or Laravel < 12
Facets
library · maturity active
orm web-development backend developer-tools php laravel eloquent slugs seo url-generation translatable self-healing-urls
10 sources
- readme: https://github.com/spatie/laravel-sluggable · fetched 2026-08-28 · 58f72acc27b3
- homepage: https://spatie.be/docs/laravel-sluggable · fetched 2026-08-29 · e0631e63e0e3
- site_page: https://spatie.be/docs · fetched 2026-08-29 · 08e024d86d95
- site_page: https://spatie.be/about-us · fetched 2026-08-29 · d3cb88e4b34c
- site_page: https://spatie.be/docs/laravel-sluggable/v4 · fetched 2026-08-29 · ce52e24057e6
- site_page: https://spatie.be/docs/laravel-sluggable/v4/requirements · fetched 2026-08-29 · b8e70f6ec4bc
- site_page: https://spatie.be/docs/laravel-sluggable/v4/installation-setup · fetched 2026-08-29 · 5a35db5db189
- site_page: https://spatie.be/docs/laravel-sluggable/v4/translatable-slugs · fetched 2026-08-29 · 3fdb75ff856c
- site_page: https://spatie.be/docs/laravel-sluggable/v4/laravel-boost-skill · fetched 2026-08-29 · d35a624bf5ae
- site_page: https://spatie.be/docs/laravel-sluggable/v4/changelog · fetched 2026-08-29 · 092c3df32c3a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/laravel-sluggable | main | 91 |
For agents
markdown · JSON · MCP: product_card(name="spatie/laravel-sluggable")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem