I get this error in laravel when trying to access Queue -
Class 'Aws\Sqs\SqsClient' not found
My default queue is 'sync' and I have not required 'Sqs' anywhere in my composer.json. Then why is this happening? Is it compulsory to include it in newer versions of Laravel.
First check value QUEUE_DRIVER in your .env file. In your case it must be equal to „sync“
QUEUE_DRIVER=sync
Than check your supervisor configuration file. Probably you forget to change this line:
command=php /my/app/dir/artisan queue:work **sqs** ...
to
command=php /my/app/dir/artisan queue:work **sync** ...
as it described here: https://laravel.com/docs/5.7/queues#supervisor-configuration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With