Scopes
translatedIn(?string $locale = null)
Post::translatedIn('en')->get();notTranslatedIn(?string $locale = null)
Post::notTranslatedIn('en')->get();translated()
Post::translated()->get();withTranslation()
Post::withTranslation()->get();listsTranslations(string $translationField)
where translation
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')
Last updated
Was this helpful?