spatie/laravel-tags
Add flexible tagging to Laravel Eloquent models with the HasTags trait. Create, attach, detach, and query tags with ease, with built-in support for tag types, translations, and sorting—ideal for organizing content across your app.
Feature Development:
Roadmap Prioritization:
Use Cases:
Adopt This Package If:
Look Elsewhere If:
"This package lets us add tagging to our [content/products/community] with zero custom development—saving 3–6 months of work. It supports multilingual tags, custom tag types (e.g., categories vs. topics), and advanced filtering (e.g., ‘show me everything tagged X or Y’), which directly improves [user engagement/SEO/conversion]. Since it’s MIT-licensed and maintained by Spatie (a trusted open-source vendor), we avoid vendor lock-in while reducing technical risk. The cost? Just a few hours to install and configure—far cheaper than building this in-house."
*"Laravel-Tags gives us a batteries-included solution for tagging with:
HasTags trait to any model.attachTag(..., 'type').Model::withAnyTags(['tag1', 'tag2'])) or tag types.spatie/eloquent-sortable integration.Trade-offs:
Recommendation: Use this for core tagging needs; extend only if we hit limits (e.g., custom tag validation)."*
How can I help you explore Laravel packages today?