Scopes
translatedIn(?string $locale = null)
Returns all posts being translated in english
notTranslatedIn(?string $locale = null)
Returns all posts not being translated in english
translated()
Returns all posts with existing translations
withTranslation()
Eager loads translation relationship only for the default and fallback (if enabled) locale
listsTranslations(string $translationField)
Returns an array containing pairs of post ids and the translated title attribute
where translation
Filters posts by checking the translation against the given value
whereTranslation(string $translationField, $value, ?string $locale = null)
orWhereTranslation(string $translationField, $value, ?string $locale = null)
whereTranslationLike(string $translationField, $value, ?string $locale = null)
orWhereTranslationLike(string $translationField, $value, ?string $locale = null)
orderByTranslation(string $translationField, string $sortMethod = 'asc')
Sorts the model by a given translation column value
Last updated