src/Http/SuccessResponseBuilder.php
public function getResource():ResourceInterface
    {
        $this->manager->parseIncludes($this->relations);
        $transformer = $this->resource->getTransformer();

        if ($transformer instanceof Transformer && $transformer->allRelationsAllowed()) {
            $this->resource->setTransformer($transformer->setRelations($this->manager->getRequestedIncludes()));
        }

        return $this->resource->setMeta($this->meta);
    }
public function getResource():ResourceInterface
    {
        $this->manager->parseIncludes($this->relations);
        $transformer = $this->resource->getTransformer();

        if ($transformer instanceof Transformer && $transformer->allRelationsAllowed()) {
            $this->resource->setTransformer($transformer->setRelations($this->manager->getRequestedIncludes()));
        }

        return $this->resource->setMeta($this->meta);
    }
public function getResource ( ) : ResourceInterface { $ this -> manager -> parseIncludes ( $ this -> relations ) ; $ transformer = $ this -> resource -> getTransformer ( ) ; if ( $ transformer instanceof Transformer && $ transformer -> allRelationsAllowed ( ) ) { $ this -> resource -> setTransformer ( $ transformer -> setRelations ( $ this -> manager -> getRequestedIncludes ( ) ) ) ; } return $ this -> resource -> setMeta ( $ this -> meta ) ; }
Get the Fractal resource instance.

@return \League\Fractal\Resource\ResourceInterface
Get the Fractal resource instance .