PHP Class Dimsav\Translatable\Test\Model\City

Inheritance: extends Illuminate\Database\Eloquent\Model, use trait Dimsav\Translatable\Translatable
Datei anzeigen Open project: dimsav/laravel-translatable Class Usage Examples

Public Properties

Property Type Description
$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

Property Details

$localeKey public_oe property

Defaults to 'locale'.
public string $localeKey
return string

$translatedAttributes public_oe property

Array with the fields translated in the Translation table.
public array $translatedAttributes
return array

$translationForeignKey public_oe property

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

$translationModel public_oe property

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