Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 AWS 上获取我的 S3 存储桶的存储桶名称。我在我的环境文件中有它,但我希望在我的代码中使用它而不从环境文件或配置中获取它。有没有办法使用 Storage::disk('s3') 来获取这些信息?
它是配置的一部分,因此您可以访问它...
config('filesystems.disks.s3.bucket');