PHP Class Dimsav\Translatable\Test\Model\Food

Inheritance: extends Illuminate\Database\Eloquent\Model, use trait Dimsav\Translatable\Translatable
ファイルを表示 Open project: dimsav/laravel-translatable Class Usage Examples

Public Properties

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

Property Details

$fillable public_oe property

public $fillable

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