You need first to check if the file exists, if it does you need to open it and append the data, if it doesn't you need to create a new file.
Jun 15, 2022
4
Level 1
Laravel export in same file
I want to export data to excel on time-based. I am using the Laravel excel package to export the data. Every hour I want to export some data to one single file using a cron job. my concern is now how to export on the same file. Thank you in advance.
Please or to participate in this conversation.