laravel - 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
解决方案
从你的问题和评论看来你需要删除public/bootstrap/cache/config.php
然后运行php artisan config:cache
推荐阅读
- spring - Hibernate / Jpa 异常无法重新关联未初始化的瞬态集合
- javascript - javascript中的工厂模式模块和类问题给了我ReferenceError
- java - Spring Cloud Dataflow 文件启动器修改
- python - 组合两个具有不同分组要求的正则表达式
- node.js - 获取 throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
- flutter - pub.dev - 包 - 版权 - Flutter / Dart
- perl - 为什么 perl 的 Module::Load::Conditional::check_install 会找到已卸载的模块?
- python-3.x - 尝试创建 exe 文件时没有名为“tkinter”的模块
- c - C中strcmp和结构元素的问题
- css - 媒体查询不正确的行为