福州網(wǎng)站建設(shè)>網(wǎng)站新聞>thinkphp6專區(qū)

        tp6使用問(wèn)題class 'thinkfacadefilesystem' not found

        發(fā)布日期:2022-11-20瀏覽次數(shù):656 來(lái)源:福州網(wǎng)站建設(shè) 標(biāo)簽: Class 'thinkfacadeFilesystem' not found

        上傳文件時(shí),顯示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 次 )

        以上是由福州網(wǎng)站建設(shè)的小編為你分享了"tp6使用問(wèn)題class 'thinkfacadefilesystem' not found"文章,如果你在這方面有什么問(wèn)題,隨時(shí)聯(lián)系我們

        網(wǎng)友評(píng)論

        • 唯一小蝸牛 11月25日

          我也遇到這個(gè)問(wèn)題,解決方案鏈接:https://www.yixzm.cn/blog/523994.html

        • xidear 11月15日

          composer require topthink/think-filesystem 1.0.1

        • 天行者♂ 11月08日

          我也遇到這個(gè)問(wèn)題,這里是解決方案:
          https://www.365keke.com/archives/839

        • sdomars1001 11月02日

          自己引入一下filesystem包就好了

        • Jason12345 10月30日

          我也遇到同樣問(wèn)題,tp6.1移除了filesystem但沒(méi)給解決方案,無(wú)語(yǔ)死了

        • 秋水?dāng)埿呛?10月31日

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

        • 蜀信科技 10月28日

          "league/flysystem":"^1.0" 缺少這個(gè)

        • 旭來(lái)哥 2020年06月12日

          有沒(méi)有大佬來(lái)指點(diǎn)下迷津,看看是我哪一步給漏掉了

        thinkphp6專區(qū)有關(guān)的文章
        如果您有什么問(wèn)題,歡迎咨詢我們客服! 點(diǎn)擊QQ咨詢