Last active
June 1, 2019 23:07
-
-
Save rolldone/834050b6ff3ec62ffdf6358d9510b2f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return response()->stream(function () use ($writer) { | |
$writer->save('php://output'); | |
}, 200, [ | |
'Content-Type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', | |
'Content-Disposition' => 'attachment', | |
'filename' => 'file.xlsx', | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment