Laravel 5.4视图[名称]未找到 [英] Laravel 5.4 View [name] not found
本文介绍了Laravel 5.4视图[名称]未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
即使视图在resources/views目录中可用,laravel也会向我显示此错误
Even if the views is available at the resources/views directory laravel is showing me this error
未找到视图[name].
一切正常,直到当前发生令牌不匹配错误,我无法访问views目录中的任何视图.
Everything was working fine until a token mismatch error occured currently i am not being able to access any view in the views directory.
Route::get('/', function () {
return view('welcome');
});//in web.php
抛出未找到查看[welcome].例外
注意 我正在宅基地上运行我的应用程序无家可归者
NOTE I am running my application vagrant in homestead
推荐答案
仅当在Homestead服务器上运行应用程序时,我才遇到此问题,而运行
I was having this problem only when running the application on homestead server and i was able to solve this after i ran the
php artisan config:clear
命令
这篇关于Laravel 5.4视图[名称]未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文