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

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
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