public function getTermsForVocabulary($vocabulary_id)
    {
        return $this->cache->remember(
            'Rocket::Taxonomy::Terms::' . $vocabulary_id,
            60,
            function () use ($vocabulary_id) {
                $terms = TermContainer::where('vocabulary_id', $vocabulary_id)->get(['id']);

                $results = [];
                if (!empty($terms)) {
                    foreach ($terms as $term) {
                        $results[] = $term->id;
                    }
                }

                return $results;
            }
        );
    }
public function getTermsForVocabulary($vocabulary_id)
    {
        return $this->cache->remember(
            'Rocket::Taxonomy::Terms::' . $vocabulary_id,
            60,
            function () use ($vocabulary_id) {
                $terms = TermContainer::where('vocabulary_id', $vocabulary_id)->get(['id']);

                $results = [];
                if (!empty($terms)) {
                    foreach ($terms as $term) {
                        $results[] = $term->id;
                    }
                }

                return $results;
            }
        );
    }
public function getTermsForVocabulary ( $ vocabulary_id ) { return $ this -> cache -> remember ( 'Rocket::Taxonomy::Terms::' . $ vocabulary_id , 60 , function ( ) use ( $ vocabulary_id ) { $ terms = TermContainer :: where ( 'vocabulary_id' , $ vocabulary_id ) -> get ( [ 'id' ] ) ; $ results = [ ] ; if ( ! empty ( $ terms ) ) { foreach ( $ terms as $ term ) { $ results [ ] = $ term -> id ; } } return $ results ; } ) ; }
Get all the terms of a vocabulary

@param int $vocabulary_id
@return array
Get all the terms of a vocabulary