public function transformItem(Model $item, $includes = [], TransformerContract $transformer = null)
    {
        $this->fractal_manager->parseIncludes($includes);
        $transformer = is_null($transformer) ? $this->getTransformer() : $transformer;
        $resource = new Item($item, $transformer, $this->getModelName());
        return $this->fractal_manager->createData($resource)->toArray();
    }
public function transformItem(Model $item, $includes = [], TransformerContract $transformer = null)
    {
        $this->fractal_manager->parseIncludes($includes);
        $transformer = is_null($transformer) ? $this->getTransformer() : $transformer;
        $resource = new Item($item, $transformer, $this->getModelName());
        return $this->fractal_manager->createData($resource)->toArray();
    }
public function transformItem ( Model $ item , $ includes = [ ] , TransformerContract $ transformer = null ) { $ this -> fractal_manager -> parseIncludes ( $ includes ) ; $ transformer = is_null ( $ transformer ) ? $ this -> getTransformer ( ) : $ transformer ; $ resource = new Item ( $ item , $ transformer , $ this -> getModelName ( ) ) ; return $ this -> fractal_manager -> createData ( $ resource ) -> toArray ( ) ; }
Pass a model through the transformer

@method transformItem
@param  Model                $item               The model to transform
@param  array                $includes           Any transformer includes to use
@param  TransformerContract  $transformer        Override the transformer
@return array
Pass a model through the transformer