Download the PHP package megaezz/laravel-eloquent-localizable without Composer
On this page you can find all versions of the php package megaezz/laravel-eloquent-localizable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download megaezz/laravel-eloquent-localizable
More information about megaezz/laravel-eloquent-localizable
Files in megaezz/laravel-eloquent-localizable
Download megaezz/laravel-eloquent-localizable
More information about megaezz/laravel-eloquent-localizable
Files in megaezz/laravel-eloquent-localizable
Vendor megaezz
Package laravel-eloquent-localizable
Short Description Retrieve the value of a localizable attribute based on the current locale.
License MIT
Package laravel-eloquent-localizable
Short Description Retrieve the value of a localizable attribute based on the current locale.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-eloquent-localizable
Laravel Eloquent Localizable
A simple trait for making Eloquent models localizable in Laravel. This trait allows you to easily manage model attributes in different languages by using the current locale or a fallback locale.
Installation
-
Install the package via Composer:
- Apply the Localizable trait to your Eloquent model:
Make sure your database table contains the necessary fields for each localized attribute. For example:
• title_en, title_ru
• description_en, description_ru
Retrieving Localized Attributes
Once the trait is applied, you can access the localizable attributes like usual. The value returned will be based on the current locale of the application:
All versions of laravel-eloquent-localizable with dependencies
PHP Build Version
Package Version
No informations.
The package megaezz/laravel-eloquent-localizable contains the following files
Loading the files please wait ...