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

Project Samples

Project Activity

See All Activity >

Categories

Database

License

MIT License

Follow Laravel-Translatable

Laravel-Translatable Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Laravel-Translatable!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Database Software

Registered

2022-07-20