Download the PHP package we-are-neopix/laravel-model-translation without Composer
On this page you can find all versions of the php package we-are-neopix/laravel-model-translation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download we-are-neopix/laravel-model-translation
More information about we-are-neopix/laravel-model-translation
Files in we-are-neopix/laravel-model-translation
Package laravel-model-translation
Short Description This package is a driver based solution to translating Laravel models. It contains two drivers for storing translations in the database and in a JSON file, but also contains a plug-and-play system for its users to implement custom drivers for storing translations and use them with the package.
License MIT
Homepage https://github.com/neopix/laravel-model-translation
Informations about the package laravel-model-translation
A robust yet elegant system for translating Eloquent Models
For Laravel 7 and 8 use version ~1.2
This package is meant to simplify the process of making Eloquent models translatable. It's aim is to deviate as little as possible from Laravel's Eloquent API but still provide a satisfiable level of flexibility. This is achieved by utilizing a driver-based approach to storing translations and a trait which allows Model instances to seamlessly interact with the translation storage.
After setting the package up, all that takes to use your models with translations is this:
Since this is a driver-based solution, you have the full power to implement the architecture for persistently storing translations yourself. Of course, the package comes with two drivers out of the box, JSON and MySQL, but you are free to implement your own drivers and rely on whatever architecture you prefer.
For a more detailed explanation on how the package works and how to use it, please visit our wiki pages.