更改根文件夹名称

时间:2016-06-18 15:58:38

标签: laravel

我的Laravel项目文件夹是“laravel”所以我改为“testsite”,但现在我无法访问该网站。

InvalidArgumentException in FileViewFinder.php line 137: View [pages.home] not found.

ErrorException in Filesystem.php line 109: file_put_contents(C:\Users\Zen\Google Drive\xampp\laravel\storage\framework/sessions/4d5b7c28f025c192658893a77c2d6bdb60b33d48): failed to open stream: No such file or directory

可在此处找到完整错误:

PasteBin

它在粘贴中可见,与旧文件夹“laravel”中的会话相关。

将Xampp与虚拟主机一起使用,重新启动Xampp,清除浏览器缓存,它没有解决问题。

我该如何解决这个问题?

2 个答案:

答案 0 :(得分:2)

问题已解决,此处已说明:Laravel 5.1 View not found

php artisan cache:clear
php artisan config:cache

答案 1 :(得分:0)

你的路径不一致,看看你是如何设置斜杠的:

xampp\laravel\storage\framework/sessions/

除此之外,请确保framework/session文件夹存在

还要检查views文件夹中是否存在pages.home层次结构:

View [pages.home] not found
相关问题