public function transformWithRelated($item)
    {
        $transformedItem = $this->getTransformation($item);

        return $this->transformRelated($transformedItem, $item);
    }
public function transformWithRelated($item)
    {
        $transformedItem = $this->getTransformation($item);

        return $this->transformRelated($transformedItem, $item);
    }
public function transformWithRelated ( $ item ) { $ transformedItem = $ this -> getTransformation ( $ item ) ; return $ this -> transformRelated ( $ transformedItem , $ item ) ; }
Transforms the item with its related models.

@param $item
@return array
Transforms the item with its related models .