Add raw string/data support for Response::download
lastguest opened this issue · 1 comments
lastguest commented
Response::download
now only accept a file/url, add support to raw string data.
Example :
Response::download([
'filename' => 'test.csv',
'mime' => 'text/csv',
'body' => '..........',
]);
Using an array to pass raw data will not break retrocompatibility.