call a specific GET-Route within my Laravel app, do the permission checks and then return response()->download($pathToFile); ?
Would be the solution if files were stored locally. With S3 I don't know, not used it enough.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi everyone,
in the near future I might have to build a new shop for my company. We develop games, so we'll probably want so sell digital goods there: our games, soundtracks and various pre-order packages for future games.
Implementing a shop system with articles, carts and stuff sound pretty straightforward in my head. But I'm still looking for an approach to securely deliver the digital goods.
So let's say customer XY is buying a DRM-free version of our latest game. The payment goes through using Stripe or PayPal, the shop gets the API response and adds the product to the customer.
Now how can he download the game? Do I put the Installer up on an Amazon S3 Bucket with a cryptic name that no one can ever figure out and then call a specific GET-Route within my Laravel app, do the permission checks and then return response()->download($pathToFile); ?
I can imagine that there are more things to consider here. Any ideas / heads-ups?
Please or to participate in this conversation.