aws / aws-sdk-php-laravel

A Laravel 5+ (and 4) service provider for the AWS SDK for PHP
http://aws.amazon.com/sdkforphp/
Apache License 2.0
1.64k stars 242 forks source link

'Class "Aws\Laravel\AwsServiceProvider" not found' on release 3.7.0 (Laravel 9) #215

Closed andreyduarte closed 2 years ago

andreyduarte commented 2 years ago

Describe the bug

Release 3.7.0 on Laravel 9 crashes on start with Error 500: 'Class "Aws\Laravel\AwsServiceProvider" not found'.

Expected Behavior

The Aws\Laravel\AwsServiceProvider Class should be autoloaded by composer.

Current Behavior

Whenever the Laravel page loads the following error occurs: print

Reproduction Steps

Install aws-sdk-php-laravel 3.7.0 on a Laravel 9 Project via Composer. Add Provider and Alias according to README. Serve laravel server. Acess any page of the app, wich will result in the error shown.

Possible Solution

No response

Additional Information/Context

The application is running inside a Docker Container. The app uses the Metronic 1 theme. The installation method was Composer, as suggested by the README. Provider and Alias have been added according to README.

SDK version used

3.7.0

Environment details (OS name and version, etc.)

Windows 7, app running on a Docker Container

yenfryherrerafeliz commented 2 years ago

Hi @andreyduarte thanks for opening an issue. Could you please verify if the aws packages are present in the vendor folder?, you could do this by executing "ls vendor/aws/" and you should get something as follow:

[~/PROJECT_PATH]$ ls vendor/aws/                    
aws-crt-php         aws-sdk-php         aws-sdk-php-laravel
[~/PROJECT_PATH]$ 

Thanks!

github-actions[bot] commented 2 years ago

This issue has not recieved a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.