oliwol/laravel-slugify
A Laravel package for generating URL-friendly slugs from strings. Provides a simple helper to turn titles and text into clean, readable slugs for routes, posts, and other model fields, with optional customization for separator and uniqueness.
appendId) let route keys become {slug}-{id}, resolve by ID, and issue a 308 canonical redirect when a slug goes stale. This supports a product decision to allow content renaming without breaking inbound links, preserving SEO equity and customer bookmarks.SlugConfig fluent API supports closures and conditional configuration, useful for multi-tenant products, locale-specific slug rules, or content-type-specific behavior without one-off code paths.Consider adoption when:
Look elsewhere when:
For executives: v2.0.0 is a low-risk, backward-compatible upgrade that strengthens SEO and link permanence through ID-anchored slugs and canonical redirects. It supports a buy-over-build decision for commodity URL infrastructure, reducing maintenance cost and engineering distraction. The main planning constraint is the modern platform requirement: PHP 8.4+ and Laravel 11–13.
For engineering: The release is opt-in and upgrade-friendly — composer update for most apps, with an UPGRADE.md guide. It adds a fluent SlugConfig API, ID-anchored route resolution with 308 redirects for stale slugs, a Boost-discoverable skill, and improved Spatie v4 migration documentation. No breaking changes. The main adoption gate is the PHP/Laravel compatibility floor.
How can I help you explore Laravel packages today?