在 laravel 上配置 AWS S3 端点

Configure AWS S3 endpoint on laravel

如何在配置文件 config/aws.php 或 config/filesystem.php 中设置端点才能不出现以下错误

变量的名称是什么 S3_END_POINT 或只是端点或什么?

The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint: "swiptimages.s3-eu-west-1.amazonaws.com".

导致此错误的最可能原因是您在与您在 S3 客户端配置中放置的区域不同的区域中创建了存储桶。确保 S3_REGION 的值(或您在 filesystems.php 中作为区域传递的任何值与该存储桶的区域匹配在 S3.