# spatie/laravel-tags

Add tags and taggable behaviour to your Laravel app

Repository: https://github.com/spatie/laravel-tags
Canonical: https://ross.abutalabs.com/products/laravel-tags
Homepage: https://freek.dev/609-an-opinionated-tagging-package-for-laravel-apps
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, php, tags, database, eloquent
Last push: 2026-06-26T09:49:45+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 89, release rhythm 89, longevity 100
- inputs: {"age_days": 3605, "days_push": 68, "days_rel": 74, "gap_med": 21, "n_releases_24m": 12}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1748, forks 283 (observed 2026-08-28T04:05:30.934101+00:00)

## What it is
A Laravel package by Spatie that adds taggable behavior to Eloquent models via a HasTags trait. It supports attaching, detaching, and syncing tags, plus tag translations, multiple tag types, and sorting out of the box.

## Use cases
- add tags to laravel eloquent models
- tag and categorize content in a laravel app
- retrieve models by tags in laravel
- translate tags for a multilingual laravel app
- manage multiple tag types like categories and topics
- sync tags on a model so only given tags remain

## When to choose
- you're building a Laravel app and need tagging on Eloquent models
- you need tag translations or typed tag groups out of the box
- you want a well-maintained, widely used tagging solution

## When to avoid
- your project isn't Laravel/PHP
- you only need simple string labels without a database-backed tag model
- you use another framework like Symfony or Rails

## Facets
- artifact type: library
- maturity: stable
- function: orm, database
- domain: web-development, backend, developer-tools
- platform: php
- tags: laravel, eloquent, tagging, tags, spatie, multilingual, web-server

## Member repositories
- spatie/laravel-tags (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:30.934101+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:29:00.924239+00:00, confidence not recorded.
  - readme: https://github.com/spatie/laravel-tags (fetched 2026-08-28T04:05:30.934101+00:00, sha 279abc26662f)
  - homepage: https://freek.dev/609-an-opinionated-tagging-package-for-laravel-apps (fetched 2026-08-29T11:06:48.143488+00:00, sha caecd05703a9)
  - site_page: https://freek.dev/about (fetched 2026-08-29T11:06:48.146497+00:00, sha e0ef9dccbb05)
- Data as of 2026-08-30T08:39:29.467469+00:00.
