codinglabsau/laravel-sluggable
A lightweight Laravel package that adds automatic slug generation to Eloquent models. Point the trait at a source column and it creates unique, customizable, URL-friendly slugs on save, handling duplicates and separators with minimal configuration.
my-great-post) is small, well-bounded, and easy to get 80% right and 20% wrong — collisions, unicode, punctuation, uniqueness on update. A package dependency here is almost always cheaper than owning that edge-case surface. This release does not change that calculus; it keeps the "buy" option viable.Adopt / shortlist when:
Look elsewhere (or build a thin internal helper) when:
cocur/slugify or a Slugify-backed implementation instead.spatie/laravel-sluggable is the far more widely adopted alternative with a larger issue/discussion footprint. If the slug is on a revenue-critical path, run a side-by-side against Spatie before committing — the API surface is similar enough that switching later is cheap, but choosing the more-supported option up front is cheaper still.Caveat on this assessment: it is based on the v1.1.1 changelog only. Confirm feature set, minimum PHP version, and test coverage against the README and CI config before adoption.
To executives (30 seconds): Slug generation is the small piece of plumbing that makes URLs readable and SEO-friendly. It is a solved problem and we should not spend engineering time on it. This release is a maintenance update — it adds Laravel 11 compatibility, which means the package stays usable through our next framework upgrade instead of becoming a blocker we'd have to patch ourselves. Cost is one line in composer.json; risk is low and reversible.
To engineering (the real conversation): v1.1.1 is a compatibility patch, not a feature release — no API changes, no breaking changes, no deprecations. Laravel 11 support is the only substantive item, and it de-risks our upgrade path. Before adopting: (1) verify the package's actual feature set and PHP constraint floor in the README, since this changelog is thin; (2) benchmark it against spatie/laravel-sluggable, which has materially broader adoption and a larger maintenance surface; (3) confirm our transliteration requirements, because if we need non-Latin slugs this is the wrong tool. If it passes those three checks, the integration is a trait on the relevant models plus a uniqueness index — roughly an afternoon, including tests, and trivially reversible if we change our minds.
How can I help you explore Laravel packages today?