RexT
102
1
Laravel

CSV download page error

Posted 10 months ago by RexT

Hello!

I have a CSV download using League's CSV.

If I output the CSV and die:

$csv->output('report.csv');
die();

Then the download works, but I get a "site can't be reached" error.

If I remove the die(), then I still get the error but no download.

Is there a way to serve the CSV output without it looking like an error?

Thanks!

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.