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

Наследование: 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: City => CityTranslation

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

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

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

$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: City => CityTranslation
public $translationModel