Skip to content
Advertisement

Build csv and upload to google drive in php (laravel 5.8)

How do I send a response()->stream() to google drive ? I’m not getting it because this method returns a class and not a file. My question is if I will need to save locally using file_put_contents() so that I can then send it to google drive

JavaScript
JavaScript

On google drive my file looks like this: Google drive file

Advertisement

Answer

Try this

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement