session - Laravel 6.0写入 session 时出错无法在Windows中打开文件流

标签 session windows-10 php-7.2 laravel-6

我正在 Laravel 6.0.0 中做一个项目。我遇到了下面给出的错误。

file_put_contents(C:\xampp\htdocs\lsapp\storage\framework/sessions/): failed to open stream: No such file or directory.

已经从 bootstrap/cache/config.php 中删除了 config.php 文件。但它不起作用。有什么解决办法吗?

最佳答案

删除app/bootstrap/cache/config.php中的文件,然后运行artisan命令清除配置php artisan config:cache。它将清除缓存的配置。然后尝试打开您的应用程序(也尝试使用隐身模式)。如果仍然无法正常工作,请检查 laravel 项目是否设置正确。运行一次composer install

关于session - Laravel 6.0写入 session 时出错无法在Windows中打开文件流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57842255/

相关文章:

c# - UWP 上的 Accelerometer.Shaken 事件不起作用,有什么解决方案吗?

facebook - hapi.js 需要多个身份验证策略?

c# - 适用于 Windows 8.1/10 应用程序的 IsolatedStorage 浏览器

php - Docker:无法在 Windows 10 上获取 nginx 的配置文件

php - symfony simple-phpunit 错误 'You have requested a non-existent service "test.client"' 仅在部署脚本中

php - Howto ubuntu 18.04 安装/激活 PHP 扩展 ext-mcrypt

regex - 如何用不在数字之间的斜杠分割字符串?

header 重定向后 PHP session 索引未定义?

c# - 如何在 Windows 商店应用程序中实现登录注销功能?

python - 页面更改时 Flask 登录 session 不会持续存在