Метод |
Описание |
|
__call ( string $method, array $parameters ) : mixed |
Handle polyglot dynamic method calls for locale relations. |
|
__get ( string $key ) : mixed |
Get a localized attribute |
|
__isset ( string $key ) : boolean |
Checks if a field isset while taking into account localized attributes |
|
getLangClass ( ) : string |
Get the Lang class corresponding to the current model |
|
getPolyglotAttributes ( ) : array |
Get the polyglot attributes |
|
lang ( string $lang = null ) : Illuminate\Database\Eloquent\Relations\HasOne |
Reroutes functions to the language in use |
|
localize ( array $localization ) : boolean | null |
Localize a model with an array of lang arrays |
|
scopeWithLang ( ) : Query |
Localize a "with" method |
|
translations ( ) : Illuminate\Database\Eloquent\Relations\HasMany |
Get all translations |
|