src/Traits/FindsModelsByTranslationTrait.php
public function findAllByTranslation($attribute, $value, $locale = null, $exact = true)
    {
        $this->pushCriteriaOnce( new WhereHasTranslation($attribute, $value, $locale, $exact) );

        return $this->all();
    }
public function findAllByTranslation($attribute, $value, $locale = null, $exact = true)
    {
        $this->pushCriteriaOnce( new WhereHasTranslation($attribute, $value, $locale, $exact) );

        return $this->all();
    }
public function findAllByTranslation ( $ attribute , $ value , $ locale = null , $ exact = true ) { $ this -> pushCriteriaOnce ( new WhereHasTranslation ( $ attribute , $ value , $ locale , $ exact ) ) ; return $ this -> all ( ) ; }
Finds models by a given translated property

@param string $attribute must be translated property!
@param string $value
@param string $locale
@param bool   $exact     = or LIKE match
@return \Illuminate\Support\Collection
Finds models by a given translated property