PHP 클래스 Dimsav\Translatable\Test\Model\Food

상속: extends Illuminate\Database\Eloquent\Model, use trait Dimsav\Translatable\Translatable
파일 보기 프로젝트 열기: dimsav/laravel-translatable 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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