# cviebrock/eloquent-sluggable

Easy creation of slugs for your Eloquent models in Laravel

Repository: https://github.com/cviebrock/eloquent-sluggable
Canonical: https://ross.abutalabs.com/products/eloquent-sluggable
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, eloquent-models, slug
Last push: 2026-07-20T13:52:37+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 35, longevity 100
- inputs: {"age_days": 4837, "days_push": 44, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3997, forks 452 (observed 2026-08-28T04:08:31.926021+00:00)

## What it is
A Laravel package that automatically generates URL-friendly slugs for Eloquent models. It handles slug creation, uniqueness, and configuration through a simple trait-based API.

## Use cases
- generate seo-friendly urls for laravel models
- create unique slugs for blog posts
- convert model titles to url-safe identifiers
- handle slug uniqueness with suffixes
- use slugs for route model binding in laravel

## When to choose
- you build Laravel apps with Eloquent and need slugs
- you want automatic, configurable slug generation with uniqueness handling
- you need route model binding by slug

## When to avoid
- you don't use Laravel or Eloquent
- you need slugs outside of a Laravel/PHP stack
- you only need one-off string slugging without model integration

## Facets
- artifact type: library
- maturity: stable
- function: orm, serialization
- domain: web-development, backend, cms
- platform: php
- tags: laravel, eloquent, slug-generation, url-friendly, seo

## Member repositories
- cviebrock/eloquent-sluggable (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:31.926021+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:10.227481+00:00, confidence not recorded.
  - readme: https://github.com/cviebrock/eloquent-sluggable (fetched 2026-08-28T04:08:31.926021+00:00, sha 209df20be30a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
