Replies: 1 comment
-
Of course this is a Flysystem Feature since ever 🤦♂️ I've created a PR to support the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Laravel Community,
We've been building numerous Statamic websites. Statamic facilitates the definition of Containers to store Assets, like images. These Containers reference a disk as defined in
config/filesystem.php
. As our websites grow, we find ourselves defining an increasing number of disks. Thankfully, Laravel's Scoped Disks means we no longer need to repetitively copy configurations.Previously, we had configurations like:
Now, with scoped disks, we can simplify it to:
There's a
visibility
config key in the filesystem configurations, a Statamic-specific attribute, which defines if the saved files on an S3 bucket should be publicly visible or private.The Challenge
When Laravel generates a scoped disk, it exclusively considers the config values
driver
,disk
, andprefix
. This is entirely logical for a vanilla Laravel project. However, when incorporating packages like Statamic, having the ability to include additional config keys in a scoped disk configuration would be beneficial.Recognizing that this may be a niche concern, I'm reaching out to gauge the community's thoughts. Laravel is renowned for its adaptability, so I'm hopeful there's a way to address this need without compromising the framework's elegance. If there's consensus or a roadmap, I'm more than happy to contribute a Pull Request.
Thank you for your consideration.
Beta Was this translation helpful? Give feedback.
All reactions