Level 10
@rajora you would probably want to have an event listener, on every successfully pdf generation then execute the drive upload method or set up a cron job
How I upload a file from local to google drive, In my case, I am generating a pdf and uploading it to google drive
$path = \Storage::disk('google')->putFileAs("$dir" , $pdf, 'filename.pdf'); , $dir is google directory id. I want to upload a file into a dynamically generated folder, I am not taking files from any form just picking a file from the storage folder and uploading it to google drive. are any guys have an idea to send the file in a folder on google drive?
Please or to participate in this conversation.