spatie/laravel-sluggable
Generate unique slugs for Eloquent models on create/update. Supports collision suffixes, translatable slugs, and customizable slug options. Includes self-healing URLs that keep old links working via slug+ID route keys with 308 redirects to the canonical URL.
This package ships a Laravel Boost skill that teaches any Boost-aware AI assistant (Claude Code, Cursor, Copilot CLI, Gemini CLI, and others supported by Boost) how to use laravel-sluggable correctly.
When your project has both spatie/laravel-sluggable and laravel/boost installed, Boost's SkillComposer automatically discovers the skill at vendor/spatie/laravel-sluggable/resources/boost/skills/sluggable-development/. No extra configuration is required.
Running Boost's install command writes the skill into your configured agent's skills directory (for example, .claude/skills/sluggable-development/ for Claude Code or .agents/skills/sluggable-development/ for Gemini CLI).
The skill activates when a query mentions slugs, permalinks, the HasSlug trait, the HasTranslatableSlug trait, the #[Sluggable] attribute, SlugOptions, findBySlug, self-healing URLs, or stale slug redirects. It guides the assistant through:
#[Sluggable] attribute and the HasSlug trait for a given model.nullable then unique backfill pattern and the JSON column requirement for translatable slugs.308 redirect through the SelfHealing facade.config/sluggable.php.The full skill content lives at resources/boost/skills/sluggable-development/SKILL.md in the package repository.
How can I help you explore Laravel packages today?