Laravel 6.0 写入会话时出错 ias 无法在 windows 中打开文件流
Laravel 6.0 error in writing session ias failed to open file stream in windows
我正在 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 中删除了 config.php 文件。php.But 它不起作用。有什么解决方法吗?
删除 app/bootstrap/cache/config.php
中的文件,然后 运行 artisan 命令清除配置 php artisan config:cache
。它将清除缓存的配置。然后尝试打开您的应用程序(也可以尝试使用隐身模式)。如果仍然无法正常工作,请检查 laravel 项目是否设置正确。 运行 composer install
一次。
我正在 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 中删除了 config.php 文件。php.But 它不起作用。有什么解决方法吗?
删除 app/bootstrap/cache/config.php
中的文件,然后 运行 artisan 命令清除配置 php artisan config:cache
。它将清除缓存的配置。然后尝试打开您的应用程序(也可以尝试使用隐身模式)。如果仍然无法正常工作,请检查 laravel 项目是否设置正确。 运行 composer install
一次。