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

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

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

Свойство Тип Описание
$fillable
$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

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

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

public $fillable

$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: Country => CountryTranslation
public $translationModel