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

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Laravel Sluggable

Laravel Sluggable Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Laravel Sluggable!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Frameworks

Registered

2024-04-12