PHP Класс Dimsav\Translatable\Test\Model\Person

Наследование: extends Illuminate\Database\Eloquent\Model, use trait Dimsav\Translatable\Translatable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$localeKey string Defaults to 'locale'.
$translatedAttributes array Array with the fields translated in the Translation table.
$translationForeignKey Set this if you want to overwrite the laravel default for foreign keys.
$translationModel The convention is to add "Translation" to the name of the class extending Translatable. Example: Country => CountryTranslation

Защищенные свойства (Protected)

Свойство Тип Описание
$table

Открытые методы

Метод Описание
getNameAttribute ( $value ) : string Mutate name attribute into upper-case.

Описание методов

getNameAttribute() публичный метод

Mutate name attribute into upper-case.
public getNameAttribute ( $value ) : string
$value
Результат string

Описание свойств

$localeKey публичное свойство

Defaults to 'locale'.
public string $localeKey
Результат string

$table защищенное свойство

protected $table

$translatedAttributes публичное свойство

Array with the fields translated in the Translation table.
public array $translatedAttributes
Результат array

$translationForeignKey публичное свойство

Set this if you want to overwrite the laravel default for foreign keys.
public $translationForeignKey

$translationModel публичное свойство

The convention is to add "Translation" to the name of the class extending Translatable. Example: Country => CountryTranslation
public $translationModel