TranslatableTrait in your model and define the translatable attributes:
whereTranslationmethod. For example, to search for the slug of a post, you'd use
whereTranslationaccepts the following parameter:
fieldthe field you want to search in
valuethe value you want to search for
localesthe locales you want to search in as an array. Leave as
nullif you want to search all locales
defaultalso search in the default value/locale. Defaults to true.