A Laravel package for storing and retrieving multilingual model translations in the database.
Laravel Translatable is a Laravel package that enables developers to store and retrieve translations of Eloquent models directly in the database. It simplifies building multilingual applications by handling translation logic automatically, allowing models to have attributes in multiple languages without manual query overhead.
Laravel developers building applications that require multilingual content, such as e-commerce sites, CMS platforms, or any system needing localized model data like products, categories, or countries.
Developers choose Laravel Translatable because it integrates seamlessly with Eloquent, reduces repetitive code for translation management, and offers features like fallback locales, magic properties, and query scopes that make working with translated data intuitive and efficient.
[Deprecated] A Laravel package for multilingual models
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Translations are fetched and saved automatically when interacting with model instances, eliminating manual query logic for multilingual data.
Supports custom locales, fallback locales, and country-based variations like es-MX, with configurable per-property fallback options.
Provides Eloquent scopes such as translatedIn() and whereTranslation() for filtering models based on translated fields, simplifying database queries.
Allows direct access to translated attributes via properties like $model->name or $model->{'name:de'}, making code more intuitive and Eloquent-like.
The package has been officially deprecated since 2019, with no updates, bug fixes, or support, making it risky for production use.
Only supports Laravel up to version 5.8, so it's incompatible with newer Laravel releases without potential breaking changes.
Users must switch to the fork Astrotomic/laravel-translatable, involving dependency changes and possible code adjustments, adding unnecessary complexity.