福州网站建设>网站新闻>thinkphp6专区

tp6使用问题class 'thinkfacadefilesystem' not found

发布日期:2022-11-20浏览次数:323 来源:福州网站建设 标签: Class 'thinkfacadeFilesystem' not found

上传文件时,显示Class 'think\facade\Filesystem' not found

代码如下

public function checkLogin()
{

$data = Request::param();
$image = Request::file();
// $savename = \think\facade\Filesystem::putFile( 'topic', $file);
$savename = \think\facade\Filesystem::disk('public')->putFile( 'topic', $image);
$bisData = [
'username' => $data['username'],
'password' => $data['password'],
'image' => $image['image'],
];

附件 8c72043902d5213b7c64ec12ed898cd.png ( 15.23 KB 下载:22 次 )

以上是由福州网站建设的小编为你分享了"tp6使用问题class 'thinkfacadefilesystem' not found"文章,如果你在这方面有什么问题,随时联系我们

网友评论

  • 唯一小蜗牛 11月25日

    我也遇到这个问题,解决方案链接:https://www.yixzm.cn/blog/523994.html

  • xidear 11月15日

    composer require topthink/think-filesystem 1.0.1

  • 天行者♂ 11月08日

    我也遇到这个问题,这里是解决方案:
    https://www.365keke.com/archives/839

  • sdomars1001 11月02日

    自己引入一下filesystem包就好了

  • Jason12345 10月30日

    我也遇到同样问题,tp6.1移除了filesystem但没给解决方案,无语死了

  • 秋水揽星河 10月31日

    有人解答了 https://blog.csdn.net/SleepingElf/article/details/127618243

  • 蜀信科技 10月28日

    "league/flysystem":"^1.0" 缺少这个

  • 旭来哥 2020年06月12日

    有没有大佬来指点下迷津,看看是我哪一步给漏掉了

thinkphp6专区有关的文章
如果您有什么问题,欢迎咨询我们客服! 点击QQ咨询