Property | Type | Description | |
---|---|---|---|
$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 |
public array $translatedAttributes | ||
return | array |
public $translationForeignKey |