Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[9.x] Restore S3 client extra options #41097

Merged
merged 3 commits into from
Feb 18, 2022
Merged

[9.x] Restore S3 client extra options #41097

merged 3 commits into from
Feb 18, 2022

Conversation

ankurk91
Copy link
Contributor

Hi,

PR #33612 introduce a breaking change in S3 file-system

Previously we could set extra options to S3 client like this

's3' => [
            'driver' => 's3',
            'key' => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_BUCKET'),
            'url' => env('AWS_URL'),
            'endpoint' => env('AWS_ENDPOINT'),
            'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
            // set extra options
            'options' => [
                'CacheControl' => 'max-age=2592000', // seconds
            ],
        ],

This PR restore this feature.

@taylorotwell taylorotwell merged commit cef0acf into laravel:9.x Feb 18, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants