I need to make a pdf file available to a user, which can be retrieved from an external api. I don't want to expose a link to the api to user, nor do I want to download and store all those pdf files on my server.
Basically, there are two approached that I have questions about:
is there a way in Laravel to mask the external link with a temporary link?
or how can I get the file from external link and store it temporarily on my server to show the user and then have all those temporary pdf files removed from my server?