简体   繁体   中英

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 . 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.

Class GetStream\StreamChat\Client not found

Any idea?

Your autoload script is maybe outdated.

For installing new dependency with composer you should use:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM