mindy/orm-slug-field
A Laravel/PHP ORM field package that adds automatic URL-friendly slug generation and management to your models, with configurable source fields and uniqueness handling for clean, SEO-friendly routes.
Str::slug() plus a while (exists) loop.Consider it only if:
spatie/laravel-sluggable or cviebrock/eloquent-sluggable.Look elsewhere if:
To executives: This is a small, MIT-licensed PHP utility that generates URL-friendly slugs from a title field. It is not a strategic dependency — it has one star and no downstream users, so we should treat it as a design reference rather than a vendor. The product-level ask is modest: agree that slug generation is a shared platform primitive, decide whether URLs are allowed to change after publish (which drives SEO redirect requirements), and fund a single implementation instead of letting each team build its own. Cost is near zero; the risk of not deciding is inconsistent URLs and broken links across surfaces.
To engineering: The package targets MindyPHP's ORM, so it is not directly usable in our Eloquent codebase. Value is as a reference: the field type is small enough to read in under an hour and gives us a concrete checklist for collisions, uniqueness, and mutability. Recommendation is to reject it as a dependency on maintenance and ecosystem grounds, and instead specify our own requirements against a proven Eloquent slug library. If anyone proposes adopting it directly, the answer is no unless we migrate ORMs — and the follow-up question should be what our uniqueness scope and redirect behavior are, because those are the decisions that actually cost us.
How can I help you explore Laravel packages today?