You could use php's fopen function passing in the url and save the returned data.
Storage::put('file.zip', fopen("http://someurl/file.zip", 'r'));
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm working with a external API, this API give me a list of students assigned to the given class ID, and I need to download the certificates of those students to my local server. The API give me a temporary URL of the certificate, how can I pull the certificate to my server with laravel?
You could use php's fopen function passing in the url and save the returned data.
Storage::put('file.zip', fopen("http://someurl/file.zip", 'r'));
Please or to participate in this conversation.