首页 > 解决方案 > laravel-5.7:file_put_contents

问题描述

我在另一台电脑上创建了一个项目,它工作正常,但是当我将它复制到另一台电脑并尝试打开它时,它说:

file_put_contents(E:\xampp\htdocs\lweb2\storage\framework/sessions/tQp2cprdDgWqpDLBx52ncxsrn6vRlCpHcZjZXdjI):无法打开流:没有这样的文件或目录

它使用创建它的旧路径,

   file_put_contents(E:\xampp\htdocs\lweb2\storage\framework/sessions/eoFduOIDZQiSf979DOWLulZNJU5oub99k6xqnhkl): failed to open stream: No such file or directory

标签: laraveleloquentlaravel-5.7

解决方案


从你的问题和评论看来你需要删除public/bootstrap/cache/config.php

然后运行php artisan config:cache


推荐阅读