src/Transformer.php
public function getRelations():array
    {
        $relations = array_unique(array_merge($this->getAvailableIncludes(), $this->relations));

        return array_filter($relations, function($relation) {
            return $relation !== '*';
        });
    }
public function getRelations():array
    {
        $relations = array_unique(array_merge($this->getAvailableIncludes(), $this->relations));

        return array_filter($relations, function($relation) {
            return $relation !== '*';
        });
    }
public function getRelations ( ) : array { $ relations = array_unique ( array_merge ( $ this -> getAvailableIncludes ( ) , $ this -> relations ) ) ; return array_filter ( $ relations , function ( $ relation ) { return $ relation !== '*' ; } ) ; }
Get relations set on the transformer.

@return array
Get relations set on the transformer .