Laravel:错误 InvalidArgumentException
我将项目从本地主机上传到我的专用服务器,经过这么多问题,终于有些页面可以正常工作 domain.com |domain.com/home |domain.com/allsites 等.
I' upload the project from localhost to my dedicated server and after so many problems, finally some pages works domain.com | domain.com/home | domain.com/allsites etc..
但是现在,路由domain.com/site/create"domain.com/site/ID/manage"、domain.com/site/ID/edit"未找到,我收到此错误,为什么?
But now, the routes "domain.com/site/create" "domain.com/site/ID/manage", "domain.com/site/ID/edit" not found, i get this error, why?
FileViewFinder.php 第 137 行中的 InvalidArgumentException:未找到视图 [Site.create].
在 FileViewFinder.php 第 137 行
FileViewFinder->findInPaths('Site.create',
array('/....../resources/views')) 在 FileViewFinder.php 第 79 行
FileViewFinder->find('Site.create') 在 Factory.php 第 151 行
in FileViewFinder.php line 137 at
FileViewFinder->findInPaths('Site.create',
array('/....../resources/views')) in FileViewFinder.php line 79 at
FileViewFinder->find('Site.create') in Factory.php line 151
我尝试了工匠命令:cache:clear、route:clear、config:clear、config:cache 和 nothings 工作,我不知道问题出在哪里!
I try artisan comands: cache:clear, route:clear, config:clear, config:cache and nothings works, i don't know where is the problem!
在本地主机上完美运行
推荐答案
如果您的本地操作系统与生产服务器操作系统不同,您可能会遇到区分大小写的问题并且找不到文件.确保您的文件名完全相同,大小写.如果一个环境是 Mac 而另一个环境是 Linux,则尤其会发生这种情况.
If your local OS is different from your production server OS you might be running into a case-sensitive issue and the file is not being found. make sure your files names are EXACTLY the same, case and all. This can happen especially if one environment is Mac and the other is Linux.
如果问题没有解决,请通过以下链接.可能对你有帮助
If the issue is not fixed, please go through the following link. It may help you
Laravel 5 - 找不到查看 [home]
Laravel 5.1 未找到视图
Laravel 5 InvalidArgumentException 在 FileViewFinder.php 第 137 行: 查看 [.admin] 未找到
相关文章