Download the PHP package yaim/multilingual-eloquent without Composer
On this page you can find all versions of the php package yaim/multilingual-eloquent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yaim/multilingual-eloquent
More information about yaim/multilingual-eloquent
Files in yaim/multilingual-eloquent
Download yaim/multilingual-eloquent
More information about yaim/multilingual-eloquent
Files in yaim/multilingual-eloquent
Vendor yaim
Package multilingual-eloquent
Short Description A simple to setup and use Laravel package for storing dynamic translated (user provided) content in eloquent models.
License MIT
Package multilingual-eloquent
Short Description A simple to setup and use Laravel package for storing dynamic translated (user provided) content in eloquent models.
License MIT
Please rate this library. Is it a good library?
Informations about the package multilingual-eloquent
Laravel Multilingual Eloquent Model
Multilingual Eloquent is a simple to setup and use Laravel package for storing dynamic translated (user provided) content in eloquent models.
Docs
- Sample
- Setup
- Customization
Sample
Getting translated attributes
Creating translated models
Setup
Step 1: Installing Package
Add the package in your composer.json by executing the command.
Step 2: Migrating Database
In this example, we want to translate the model Author
. We will need an extra table author_translations
:
Step 3: Extending MultilingualEloquent Model
- The multilingual model
Author
should extendsYaim\MultilingualEloquent\Database\Eloquent\MultilingualModel
. - The protected
translatable
property should list translatable fields. - The if you want to mass assign translatable field you must include it inside
fillable
property.
Customization
You can customize Multilingual Eloquent default naming convention for the following name:
All versions of multilingual-eloquent with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
The package yaim/multilingual-eloquent contains the following files
Loading the files please wait ....