public function findBy($key, $id)
    {
        $adaptees = get_term_by($key, $id, $this->getSlug());

        return $this->plugger
            ->setModel($this)
            ->setAdapter(Term::class)
            ->plugIn($adaptees)
            ->getConnected()
            ->first();
    }
public function findBy($key, $id)
    {
        $adaptees = get_term_by($key, $id, $this->getSlug());

        return $this->plugger
            ->setModel($this)
            ->setAdapter(Term::class)
            ->plugIn($adaptees)
            ->getConnected()
            ->first();
    }
public function findBy ( $ key , $ id ) { $ adaptees = get_term_by ( $ key , $ id , $ this -> getSlug ( ) ) ; return $ this -> plugger -> setModel ( $ this ) -> setAdapter ( Term :: class ) -> plugIn ( $ adaptees ) -> getConnected ( ) -> first ( ) ; }
Find term by key.

@param  string $key
@param  int $id

@return \Illuminate\Support\Collection
Find term by key .