EloquentFilter\ModelFilter::getAllRelations PHP Method

getAllRelations() public method

Returns all local relations and relations requiring other Model's Filter's.
public getAllRelations ( ) : array
return array
    public function getAllRelations()
    {
        if (count($this->allRelations) === 0) {
            $allRelations = array_merge(array_keys($this->relations), array_keys($this->localRelatedFilters));
            foreach ($allRelations as $related) {
                $this->allRelations[$related] = array_merge($this->getLocalRelation($related), $this->getRelatedFilterInput($related));
            }
        }
        return $this->allRelations;
    }