Class 'think\facade\Filesystem' not found
项目使用Thinkphp 6.0开发的,更新阿里云IMM SDK时执行了composer update
,
之后上传文件时出现的这个错误,查询才知道Thinkphp 6.1移除了think-filesystem。
解决方法:使用composer
安装topthink/think-filesystem
composer require topthink/think-filesystem
如果使用的是宝塔面板,可能需要用root
用户而非www
用户执行命令,否则可能报错。