did you try clearing the config cache. just in case. php artisan config:clear
Just a follow up for anyone else who sees this, somebody got the answer on stack overflow:
"You have to give the destination file path/name where you want to save this file on S3 bucket as the first argument of put function. Currently you are trying to save the file at the root of bucket without any name. Try something like this:
Storage::disk('s3')->put('filename.html', file_get_contents($filePath)); This full path of the file is the Key in this context & that is what's missing in your original request."
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community