spatie/laravel-sluggable
Automatically generate unique, URL-friendly slugs for Laravel Eloquent models on save. Configure slug sources and target fields via a simple HasSlug trait and SlugOptions, with built-in uniqueness handling using Laravel’s Str::slug.
/blog/my-article vs /blog?id=123), improving organic traffic and usability.laravel-translatable for locale-specific slugs (e.g., /en/my-article, /nl/mijn-artikel).spatie/laravel-medialibrary for assets).Str::slug() manually in migrations/seeds.For Executives:
"This package automates the creation of clean, SEO-friendly URLs (e.g., /products/laptop) for our content, reducing bounce rates and improving organic search rankings. It’s a low-code solution that saves development time while ensuring consistency—no more broken links or duplicate URLs. Used by [X] similar platforms, it’s battle-tested and integrates seamlessly with our Laravel stack."
For Engineers:
*"Spatie’s laravel-sluggable provides a trait-based, opinionated way to generate slugs for Eloquent models with minimal boilerplate. Key benefits:
title, name).laravel-translatable), and edge cases like draft states./posts/{slug}.
Example: Add the trait to a Post model, define getSlugOptions(), and boom—slugs are handled automatically. Docs are excellent, and the package is MIT-licensed with active maintenance."*For Designers/Content Teams:
"This tool ensures every piece of content (blog posts, products, etc.) gets a permanent, readable URL like /our-story instead of /page?id=42. No more guessing URLs or dealing with 404s when content is updated. You’ll also get multi-language support if we expand globally."
How can I help you explore Laravel packages today?