Laravel Translatable

Repository

Author

spatie

Description

Making Eloquent models translatable

Tags

TranslationsEloquent

Date added

March 3rd, 2025

Statistics

15,367,024 downloads
2,295 stars
24 watchers
285 forks
1 issues

Source: packagist.org

Summary

Laravel Translatable is a package designed to make Eloquent models capable of storing translations for their attributes directly in a JSON format. By using the `HasTranslations` trait, developers can easily manage multiple translations for each attribute without creating separate database tables. This allows for simple retrieval and setting of translations based on the application's current locale, making multilingual support straightforward and efficient. _

Generated by Chat GPT, may contain mistakes or inaccurate information.

composer require spatie/laravel-translatable
Subscribe to newsletter

Subscribe to our newsletter

Receive news about new and exciting packages.

Our newsletter isn't quite ready just yet, enter your email above to be the first in line.

© 2025 Laragist

Laragist is an unofficial site and not affiliated with Laravel Holdings Inc

By @JacobFitzp and @carolinepixels