Installation
Require the package with Composer. The service provider and the Slugs facade alias are auto-discovered — no manual registration:
composer require roundly-consulting/sluggable-for-laravelThe package needs zero host configuration. Publish the config file and the validation translations only if you want to change them:
php artisan vendor:publish --tag="sluggable-config"
php artisan vendor:publish --tag="sluggable-translations"The slug-history migration is publish-only — nothing runs until you publish it. You need it only if you use slug history (301 redirects from old URLs):
php artisan vendor:publish --tag="sluggable-migrations"
php artisan migratePublish tags
| Tag | Publishes | When |
|---|---|---|
sluggable-config | config/sluggable.php | To change defaults. |
sluggable-translations | lang/vendor/sluggable | To change validation messages. |
sluggable-migrations | create_slug_history_table (timestamped) | Only for slug history. |
About command
php artisan about shows a Sluggable section with counts and switches only — supported-locale count, the locale source, history and redirect on/off, reserved-word count, retries, key type and whether the defaults are customised. It never prints the locale list or the reserved words.
Show your open-source love
This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.
More ways to support, including cryptoBy donating, you agree to our donation terms.
Want this built into your product?
We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.