src/Support/Collection.php
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;
    }
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;
    }
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 ; }
Stream CSV output.

@return object
Stream CSV output .