# Laravel Translatable

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


Source: https://findsoftware.frbit.cloud/laravel-translatable/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://spatie.be/docs/laravel-translatable
- repository: https://github.com/spatie/laravel-translatable
- docs: https://spatie.be/docs/laravel-translatable/v6/installation-setup
- x: https://x.com/spatie_be
- bluesky: https://bsky.app/profile/spatie.be
- mastodon: https://phpc.social/@spatie
- youtube: https://www.youtube.com/channel/UCoBbei3S9JLTcS2VeEOWDeQ
- instagram: https://www.instagram.com/spatie_be

### Identity

- status: active
- maintainer: Spatie bvba
- maintainerType: unknown
- parent: unknown
- firstRelease: 2016
- hqCountry: BE

### Kind

- category: library
- hosting: php
- language: php
- runtime: php
- runtimeMin: php 8.4
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: mysql, mariadb
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: composer

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 6
- latestReleaseDate: 2026-10-19

### Adoption

- githubStargazers: 2462
- packagistDownloads: 33920496
- npmWeeklyDownloads: not applicable
- contributors: 85
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://spatie.be/docs/laravel-translatable (read 2026-11-16)
- urls: https://api.github.com/repos/spatie/laravel-translatable (read 2026-11-16)
- urls: https://spatie.be/docs/laravel-translatable/v6/installation-setup (read 2026-11-16)
- maintainer: https://github.com/spatie/laravel-translatable/blob/main/LICENSE.md (read 2026-11-16)
- hqCountry: https://spatie.be/disclaimer (read 2026-11-16)
- firstRelease: https://api.github.com/repos/spatie/laravel-translatable/releases?per_page=100 (read 2026-11-16)
- category: https://spatie.be/docs/laravel-translatable/v6/introduction (read 2026-11-16)
- language: https://api.github.com/repos/spatie/laravel-translatable (read 2026-11-16)
- runtime: https://github.com/spatie/laravel-translatable/blob/6.15.0/composer.json (read 2026-11-16)
- runtimeMin: https://github.com/spatie/laravel-translatable/blob/6.15.0/composer.json (read 2026-11-16)
- installMethod: https://spatie.be/docs/laravel-translatable/v6/installation-setup (read 2026-11-16)
- databases: https://spatie.be/docs/laravel-translatable/v6/requirements (read 2026-11-16)
- databases: https://spatie.be/docs/laravel-translatable/v6/basic-usage/querying-translations (read 2026-11-16)
- license: https://github.com/spatie/laravel-translatable/blob/main/LICENSE.md (read 2026-11-16)
- licenseModel: https://github.com/spatie/laravel-translatable/blob/main/LICENSE.md (read 2026-11-16)
- currentMajor: https://api.github.com/repos/spatie/laravel-translatable/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/spatie/laravel-translatable/releases (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/spatie/laravel-translatable (read 2026-11-16)
- contributors: https://api.github.com/repos/spatie/laravel-translatable/contributors?per_page=1 (read 2026-11-16)
- packagistDownloads: https://packagist.org/packages/spatie/laravel-translatable.json (read 2026-11-16)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
