Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save export to disk #13

Open
vosco88 opened this issue May 12, 2020 · 6 comments
Open

Save export to disk #13

vosco88 opened this issue May 12, 2020 · 6 comments

Comments

@vosco88
Copy link

vosco88 commented May 12, 2020

How can I use this to save the exported file to disk?

@vdomah
Copy link
Owner

vdomah commented May 23, 2020

Check please the example from docs: https://github.com/vdomah/oc-botman-plugin/blob/master/classes

@vosco88
Copy link
Author

vosco88 commented May 23, 2020 via email

@vdomah
Copy link
Owner

vdomah commented May 30, 2020

Can't help with this case for now because I haven't such task yet. So may be better to ask about it on laravel-excel resources

@chrisvidal
Copy link
Contributor

@vosco88 did you manage to save your exprt on the disk?
I am having the same requirements, building nightly file export and send them by email attachments
$file = Excel::export(new ExportSubmissions($digestData), 'preschool_'.$key);

@chrisvidal
Copy link
Contributor

creating a PR for it

@vosco88
Copy link
Author

vosco88 commented May 8, 2021

@chrisvidal I have my exports built according to Laravel Excel documentation. Then when I use this:

use Vdomah\Excel\Classes\Excel
Excel::excel()->store(new UsersExport(), 'users.csv', 's3');

it works. I am saving the excels into Amazon S3, but if you ommit that last argument it should save it into the storage folder.

@vosco88 did you manage to save your exprt on the disk?
I am having the same requirements, building nightly file export and send them by email attachments
$file = Excel::export(new ExportSubmissions($digestData), 'preschool_'.$key);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants