If you want to store translations of your models into the database, this package is for you. This is a Laravel package for translatable models. Its goal is to remove the complexity in retrieving and storing multilingual model instances. With this package you write less code, as the translations are being fetched/saved when you fetch/save your instance. If the property fallback is enabled in the configuration, then translatable will return the translation of the fallback locale for the fields where the translation is empty. This package is made to translate strings, but in general it's also able to translate numbers, bools or whatever you want to. Translatable is fully compatible with all kinds of Eloquent extensions, including Ardent. For tables already created in production, update your migrations to change the engine of the table before adding the foreign key constraint.
Features
- Get translated attributes
- Save translated attributes
- Fill multiple translations
- Laravel compatibility
- Tutorials available
- Translatable models