TL;DR: This post introduce FastExcel for Laravel, gives a quick overview over PHP generators and finally shows how to use both to generate Excel fi...
For further actions, you may consider blocking this person and/or reporting abuse
Looks like the cursor does not work with eager loading for example, If we need to fetch data from multiple modal:
What would be your recommendation to deal with this? How could I export such data which would obviously be huge.
You can use database views
Hi Raphael,
I was trying to download the xls, in browser. But i am not able to do it. Are is there any other parameter we need to pass to achieve?
return (new FastExcel($dumpdata))->download(DIR.'file.xlsx');
thanks!
I already used the Spout package in an application in my work, and that solved a lot of problems that we faced related with memory! Thanks for the post =]
I was trying to use this very promising package.
The problem is, even the basic user's download is not working. No file gets downloaded to browser.
I'm calling the class from Livewire component.
Some advice?
Showing Error: Can use "yield from" only with arrays and Traversables. Can you help?
The method I wrote does not work with model, thank you for your feedback! I fixed the article using
cursorwhich is simpler!Still you could chunk by larger slices manually, like in this code:
Thank you!!
i want to import 10 M rows any idee please