Laravel Aws\Laravel\AwsServiceProvider::class 未找到

问题描述

我想在 laravel v7 中通过 aws sdk 使用 AWS QLDB 客户端 我已遵循 here 编写的所有程序。 我收到此错误

Aws\Laravel\AwsServiceProvider::class Not found

解决方法

import logging import sys logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') smtpHandler = logging.handlers.SMTPHandler( mailhost = ("localhost",8025),fromaddr = "alerts@localhost",toaddrs = "geo555@localhost",subject = "alert!" ) smtpHandler.setLevel(logging.DEBUG) logger.debug("here is the test logging for u.") 没有内置的提供程序,它是为原版 Aws SDK PHP 提供的。您需要安装它的 PHP 版本,您可以在 github 上找到该软件包。

Laravel