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
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime Icon
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime

General-purpose, compute-optimized, or GPU/TPU-accelerated. Built to your exact specs.

Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
Try 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