Generate slugs when saving Eloquent models. This package provides a trait that will generate a unique slug when saving any Eloquent model. The slugs are generated with the Laravels Str::slug method. Spatie is a web design agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Features
- The trait contains an abstract method getSlugOptions() that you must implement yourself
- Documentation available
- Your models' migrations should have a field to save the generated slug to
- Use slugs in routes
- Use multiple fields to create the slug
- Customize slug generation
- Limit the length of a slug
Categories
FrameworksLicense
MIT LicenseFollow Laravel Sluggable
Other Useful Business Software
Simple, Secure Domain Registration
Register or renew your domain and pay only what we pay. No markups, hidden fees, or surprise add-ons. Choose from over 400 TLDs (.com, .ai, .dev). Every domain is integrated with Cloudflare's industry-leading DNS, CDN, and free SSL to make your site faster and more secure. Simple, secure, at-cost domain registration.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Laravel Sluggable!