Method | Description | |
---|---|---|
forgetTranslation ( string $key, string $locale ) | ||
getAttributeValue ( string $key ) : mixed | ||
getCasts ( ) : array | ||
getTranslatableAttributes ( ) : array | ||
getTranslatedLocales ( string $key ) : array | ||
getTranslation ( string $key, string $locale ) | * | |
getTranslations ( $key ) : array | ||
isTranslatableAttribute ( string $key ) : boolean | ||
setTranslation ( string $key, string $locale, $value ) | ||
setTranslations ( string $key, array $translations ) | ||
translate ( string $key, string $locale = '' ) : mixed |
Method | Description | |
---|---|---|
guardAgainstUntranslatableAttribute ( string $key ) | ||
normalizeLocale ( string $key, string $locale ) : string |
public forgetTranslation ( string $key, string $locale ) | ||
$key | string | |
$locale | string |
public getAttributeValue ( string $key ) : mixed | ||
$key | string | |
return | mixed |
public getTranslatedLocales ( string $key ) : array | ||
$key | string | |
return | array |
public getTranslation ( string $key, string $locale ) | ||
$key | string | |
$locale | string |
protected guardAgainstUntranslatableAttribute ( string $key ) | ||
$key | string |
public isTranslatableAttribute ( string $key ) : boolean | ||
$key | string | |
return | boolean |
public setTranslation ( string $key, string $locale, $value ) | ||
$key | string | |
$locale | string | |
$value |
public setTranslations ( string $key, array $translations ) | ||
$key | string | |
$translations | array |