public function item($item, $transformer, $model_name = '')
    {
        $resource = new Item($item, $transformer, $model_name);
        return $this->manager->createData($resource)->toArray();
    }
public function item($item, $transformer, $model_name = '')
    {
        $resource = new Item($item, $transformer, $model_name);
        return $this->manager->createData($resource)->toArray();
    }
public function item ( $ item , $ transformer , $ model_name = '' ) { $ resource = new Item ( $ item , $ transformer , $ model_name ) ; return $ this -> manager -> createData ( $ resource ) -> toArray ( ) ; }
Fractal transform a single item

@param object $item $item object
@param string $transformer Namespaced Transformer
@param string $model_name Model Name
@return array
Fractal transform a single item