I'm working on a project and to access the files, the user must have an account and then, he can access to the file and download it when he pay for that.
For example, I have a file like this: here
As you know, the user can copy the address in browser and simply get the file and download it. But I want the url be like this: here
And without the token, he cannot access to the file and download it.
How can I do that in PHP? I'm using Laravel for this project.
Thank you.