Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Providers config has changed since Laravel 11 #250

Open
avioli opened this issue Mar 7, 2025 · 1 comment
Open

Providers config has changed since Laravel 11 #250

avioli opened this issue Mar 7, 2025 · 1 comment

Comments

@avioli
Copy link

avioli commented Mar 7, 2025

In Laravel find the `providers` key in your `config/app.php` and register the AWS Service Provider.
```php
'providers' => array(
// ...
Aws\Laravel\AwsServiceProvider::class,
)
```

New config for providers lives under bootstrap/providers.php:

<?php

return [
    App\Providers\AppServiceProvider::class,
    # ...
    Aws\Laravel\AwsServiceProvider::class,
];
@avioli avioli changed the title Providers/Aliases config has changed since Laravel 11 Providersconfig has changed since Laravel 11 Mar 7, 2025
@avioli avioli changed the title Providersconfig has changed since Laravel 11 Providers config has changed since Laravel 11 Mar 7, 2025
@avioli
Copy link
Author

avioli commented Mar 7, 2025

As far as I can tell the alias is no longer required, because of the below line in the AwsServiceProvider.php:

$this->app->alias('aws', 'Aws\Sdk');

It seems that app('aws')->createClient(...) produces a client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant