[英]Packages are not recognized
My environment is Laravel 7.0 (PHP7.2) and Linux 18.04.4 and I'm trying to install composer install get-stream/stream-chat
.我的环境是 Laravel 7.0 (PHP7.2) 和 Linux 18.04.4 我正在尝试安装composer install get-stream/stream-chat
。 It works and it gets installed and I find it in Vendor folder, however, while I'm trying to use it, I get the following error.它可以正常工作并安装,我在 Vendor 文件夹中找到它,但是,当我尝试使用它时,出现以下错误。
Class
GetStream\StreamChat\Client
not found Class 未找到GetStream\StreamChat\Client
Any idea?任何的想法?
Your autoload script is maybe outdated.您的自动加载脚本可能已过时。
For installing new dependency with composer you should use:要使用 composer 安装新的依赖项,您应该使用:
composer require get-stream/stream-chat
Then update autoloader if it's not already working with:如果自动加载器尚未使用,则更新自动加载器:
composer dump-autoload
Check https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies检查https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.