我的环境是Laravel 7.0(PHP7.2(和Linux 18.04.4我正在尝试安装composer install get-stream/stream-chat
。它可以工作,并且已经安装,我在Vendor文件夹中找到了它,但是,当我尝试使用它时,我遇到了以下错误。
未找到类
GetStreamStreamChatClient
知道吗?
您的自动加载脚本可能已经过时。
对于使用composer安装新的依赖项,您应该使用:
composer require get-stream/stream-chat
然后更新自动加载器,如果它还没有工作:
composer dump-autoload
检查https://getcomposer.org/doc/01-basic-usage.md#installing-依赖