Not sure there are any resources but let's see if we can figure it out anyways. Is it a public api so I can try it out?
Save generated PDF to public Laravel directory from API response?
Hi
I'm feeling quite frustrated and properly out of my depth with this and wonder if anyone can help please.
As part of an API response I receive a pdf. I want to save this pdf to a directory.
I've been trying file_get_contents and streaming the download using the http guzzle client, but all I get is the file downloading in my browser, or a null response.
I won't provide any "working" code, because I'm not sure it'll help, I just can't find anything on line (possibly my search skills)!
Any pointers please, I'm happy to work it out with the right resources, I just can't find theose resources and I'm about 6 hours in!
Thanks!
Please or to participate in this conversation.