just accepts a path to file. Because I would like to work with local and cloud storage I need to find a way to retrieve files from cloud storage and return them as download to the user.
Any idea?
I know it is a problem but there is no other solution than putting the path of the file. So when the file is uploaded you have to store the path of the file.
The root of your disk is storage_path('app/uploads'), so you have to put storage_path('app/uploads') instead of storage_path() in your response()->download() call.