FindSoftware

Laravel Translatable

Trait that makes Eloquent models translatable, storing the translations as JSON in the model's own columns.

Laravel Translatable adds the HasTranslations trait to Eloquent models, so that chosen attributes keep one value per locale. The translations are stored as JSON in the model’s own columns, and no table of its own is needed. A model declares its translatable attributes with the Translatable attribute or a $translatable property. The trait then writes and reads one locale with setTranslation and getTranslation, and filters records by locale with queries such as whereLocale. The package requires Laravel.

Worth knowing

Each translatable column has to be a JSON column. The installation page says text columns can stand in where the database has no JSON type. Case-insensitive search across translations depends on the database, and SQLite converts only ASCII letters.

Identity

Status
Active
Maintainer
Spatie bvba4
First release
20166
Headquarters
Belgium5

Rendering and deploy

Install with
composer3

Releases

Current major version
611
Last release
2026-10-1911

Adoption

GitHub stars
2,4622
Packagist downloads
33,920,49613
Contributors
8512

Why these figures do not compare

Sources

  1. 2026-11-16: links
    spatie.be/docs/laravel-translatable
  2. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/spatie/laravel-translatable
  3. 2026-11-16: links, Install with
    spatie.be/docs/laravel-translatable/v6/installation-setup
  4. 2026-11-16: Maintainer, License, License model
    github.com/spatie/laravel-translatable/blob/main/LICENSE.md
  5. 2026-11-16: Headquarters
    spatie.be/disclaimer
  6. 2026-11-16: First release
    api.github.com/repos/spatie/laravel-translatable/releases?per_page=100
  7. 2026-11-16: Categories
    spatie.be/docs/laravel-translatable/v6/introduction
  8. 2026-11-16: Runtime, Minimum runtime
    github.com/spatie/laravel-translatable/blob/6.15.0/composer.json
  9. 2026-11-16: Databases
    spatie.be/docs/laravel-translatable/v6/requirements
  10. 2026-11-16: Databases
    spatie.be/docs/laravel-translatable/v6/basic-usage/querying-translations
  11. 2026-11-16: Current major version, Last release
    api.github.com/repos/spatie/laravel-translatable/releases
  12. 2026-11-16: Contributors
    api.github.com/repos/spatie/laravel-translatable/contributors?per_page=1
  13. 2026-11-16: Packagist downloads
    packagist.org/packages/spatie/laravel-translatable.json

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON