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

[Suggestion] Accessing the stream directly #8

Open
JshGrn opened this issue May 26, 2023 · 2 comments
Open

[Suggestion] Accessing the stream directly #8

JshGrn opened this issue May 26, 2023 · 2 comments

Comments

@JshGrn
Copy link

JshGrn commented May 26, 2023

Hi, I would be open to submitting a PR for this to add ->stream() to the exportable, this can just return getStream() from ExportableService.php I think...?

Use case is for when we are building csv files on the fly and sending them via email, we do not need to store them to disk and creates additional unrequired steps.

@JshGrn
Copy link
Author

JshGrn commented May 26, 2023

#9 initial PR for this

@vitorccs
Copy link
Owner

@JshGrn I have just released v2.0 which adds importing feature + your requested featured

# will get the content in a stream (content placed in a temporary file)
return (new UsersExport)->stream();

See #12

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

2 participants