Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Свойство | Тип | Описание | |
---|---|---|---|
$table |
Метод | Описание | |
---|---|---|
getNameAttribute ( $value ) : string | Mutate name attribute into upper-case. |
public getNameAttribute ( $value ) : string | ||
$value | ||
Результат | string |
public array $translatedAttributes | ||
Результат | array |
public $translationForeignKey |