usmanhalalit / laracsv

CSV files from Eloquent model in seconds - a Laravel package.
MIT License
605 stars 59 forks source link

Pass to Front End using React #49

Closed ticholNyler closed 3 years ago

ticholNyler commented 3 years ago

I need to pass this to the front end as a stream possibly because I am using Controllers as the api to a React front end.

usmanhalalit commented 3 years ago

You can output the csv data expose via API and let frontend deal with it: https://github.com/usmanhalalit/laracsv#advanced-outputs

You can pass a stream writer if you need streaming https://github.com/usmanhalalit/laracsv/blob/master/src/Laracsv/Export.php#L54