Level 12
Try,
\Config::get('filesystems.disks.s3')
returns
array:5 [
"driver" => "s3"
"key" => "your-key"
"secret" => "your-secret"
"region" => "your-region"
"bucket" => "your-bucket"
]
1 like
So, I'm uploading images to S3 using Flysystem. Works as it should. However, I'm writing a function to compile the URL of the file uploaded (i.e. S3 url of file, etc.).
That said, the question doesn't really pertain to that, instead, how can I retrieve the region and even the bucket variables found in config/filesystem.php so I can use them within my view?
Try,
\Config::get('filesystems.disks.s3')
returns
array:5 [
"driver" => "s3"
"key" => "your-key"
"secret" => "your-secret"
"region" => "your-region"
"bucket" => "your-bucket"
]
Please or to participate in this conversation.