spatie/laravel-translatable
Making Eloquent models translatable observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 89
- Release rhythm 80
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 5.5
- age_days: 3800
- days_rel: 132
- days_push: 68
- n_releases_24m: 13
Adoption not part of the score
2459 stars · 297 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Spatie PHP package providing a HasTranslations trait that makes Laravel Eloquent model attributes translatable. Translations are stored as JSON in existing columns, requiring no extra database tables.
Use cases
- make eloquent model attributes translatable
- store multilingual content in laravel models
- translate model fields per locale
- add multi-language support to laravel app without extra tables
- get and set translations on eloquent attributes
- fallback locale handling for missing translations
When to choose
- you use Laravel/Eloquent and need per-attribute translations stored in JSON columns
- you want a lightweight trait-based solution with no extra translation tables
- you need locale-aware attribute access with fallback locale support
When to avoid
- you are not using Laravel or Eloquent
- you need translation storage in separate tables or complex translation workflows
- your database is older than MySQL 5.7 and cannot use JSON columns
Facets
library · maturity stable
internationalization orm web-development databases php eloquent laravel-package translations json-columns spatie multilingual localization laravel
10 sources
- readme: https://github.com/spatie/laravel-translatable · fetched 2026-08-28 · 057cb67c0741
- homepage: https://spatie.be/docs/laravel-translatable · fetched 2026-08-29 · 9ce49767bb32
- site_page: https://spatie.be/docs · fetched 2026-08-29 · 08e024d86d95
- site_page: https://spatie.be/about-us · fetched 2026-08-29 · d3cb88e4b34c
- site_page: https://spatie.be/docs/laravel-translatable/v6 · fetched 2026-08-29 · 9ce49767bb32
- site_page: https://spatie.be/docs/laravel-translatable/v6/support-us · fetched 2026-08-29 · 345062b520c9
- site_page: https://spatie.be/docs/laravel-translatable/v6/requirements · fetched 2026-08-29 · a43d042e7213
- site_page: https://spatie.be/docs/laravel-translatable/v6/upgrading · fetched 2026-08-29 · c0b68b303de2
- site_page: https://spatie.be/docs/laravel-translatable/v6/installation-setup · fetched 2026-08-29 · f505efa577cd
- site_page: https://spatie.be/docs/laravel-translatable/v6/questions-issues · fetched 2026-08-29 · 89b48b264941
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/laravel-translatable | main | 88 |
For agents
markdown · JSON · MCP: product_card(name="spatie/laravel-translatable")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem