Eloquent-Sluggable is a Laravel package that automatically generates URL-friendly slugs for your Eloquent models.
The package solves the problem of creating readable, SEO-friendly URLs by converting model attributes into slugs—simplified strings with spaces and special characters removed, suitable for use in URLs. It handles the common requirement that slugs be unique by automatically appending numeric suffixes when duplicates are detected, so multiple posts with the same title can coexist with distinct URLs like my-dinner-with-andre-francois, my-dinner-with-andre-francois-1, and my-dinner-with-andre-francois-2.
Developers should choose this tool when building Laravel applications that need human-readable URLs for resources like blog posts, products, or other content. The package integrates directly into Eloquent models through a trait-based approach and works with route model binding, making it suitable for any Laravel project where slug generation would otherwise require manual implementation. Configuration is flexible, supporting options for slug source fields, separator characters, uniqueness constraints, maximum length, reserved words, and custom slug engine behavior. The README does not compare the package to alternatives.
Work in the issue tracker is dominated by enhancement requests and triaged issues, indicating active curation of feature requests and bug reports.