public function streamCsv()
    {
        $delimiter = ',';
        $enclosure = '"';
        $header = $this->resolveCsvHeader();

        $stream = \fopen('php://output', 'r+');

        \fputcsv($stream, $header, $delimiter, $enclosure);

        foreach ($this->items as $key => $item) {
            \fputcsv($stream, Arr::dot($item), $delimiter, $enclosure);
        }

        return $stream;
    }