Skip to content

Providers config has changed since Laravel 11 #250

@avioli

Description

@avioli

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,
];

Activity

changed the title [-]Providers/Aliases config has changed since Laravel 11[/-] [+]Providersconfig has changed since Laravel 11[/+] on Mar 7, 2025
changed the title [-]Providersconfig has changed since Laravel 11[/-] [+]Providers config has changed since Laravel 11[/+] on Mar 7, 2025
avioli

avioli commented on Mar 7, 2025

@avioli
Author

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @avioli

        Issue actions

          Providers config has changed since Laravel 11 · Issue #250 · aws/aws-sdk-php-laravel