that is an awesome package to implement with laravel. I have done import functionality but I am stuck on export functionality. Here is what I am doing.
return (new FastExcel(collect($response)))->download('file.xlsx', function($record) { return $record['data'];
});`
Specified code is returning me a html file download 288e360c-5b96-18f7-eb7e-4fbdfcc4c13a-response.html , which is containing
PK�����Ö˜SNf��vH�A��[Content_Types].xml���N�0�E����[��e��J���%T�|��'�U��qK��L��UU�@�l����=��\Ͷ���Hh��ل�Y�^�m��fo����������5����tT-v���d�5ks�wB�j�I�!�'� ��LÛ´�Q��\����o� >��e�jï¿½é¨ ï¿½z�F�m.����_3��5Jf��T���[���n/~�������#������D�:u!��l^�Q�h��Oh��@��v��1&ï
can you please help me in resolving specified issue. Also I want to mention that on export action like;
return (new FastExcel(collect($response)))->export('file.xlsx', function($record) {
return $record['data'];
});`
It is sending me a proper file which I want. and For more elaboration $record['data']
is an array in my code