src/Refinery.php
public function refineItem($raw)
    {
        $refined = $this->setTemplate($raw);

        if ( ! empty($this->attachments)) {
            $refined = $this->merge($refined, $this->includeAttachments($raw));
        }

        return $refined;
    }
public function refineItem($raw)
    {
        $refined = $this->setTemplate($raw);

        if ( ! empty($this->attachments)) {
            $refined = $this->merge($refined, $this->includeAttachments($raw));
        }

        return $refined;
    }
Refine a single item using the supplied callback.

@param  mixed $raw
@return mixed