PHP-060 / Intermediate
Long-term exposure of public storage URLs (Storage::url)
Why is this a problem?
Guessable public URLs remain accessible indefinitely.
How to fix it
php
return Storage::disk('s3')->temporaryUrl("invoices/{$id}.pdf", now()->addMinutes(5));