May be a quick php artisan config:clear might help?
Or else it might be caused by invalid or missing ssl certificate. You might need to add this (or similar) depending on the setup you have. https://curl.se/docs/caextract.html
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm trying to upload an image to the s3 from amazon using Laravel 9. I hosted my code on heroku, and when I call the endpoint to upload it, it works, but when I call this same endpoint on my localhost, League\Flysystem gives an error "Unable to write file at location". I don't know what's going on, the code for both is the same and my bucket settings haven't changed.
Please or to participate in this conversation.