Laravel:错误InvalidArgumentException [英] Laravel: Error InvalidArgumentException

查看:2280
本文介绍了Laravel:错误InvalidArgumentException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将项目从本地主机上载到我的专用服务器,并且在遇到许多问题之后,终于有一些页面可以正常工作了. 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-> findInPaths('Site.create',
FileViewFinder.php第79行中的array('/....../resources/views'))在
FileViewFinder->在Factory.php第151行找到('Site.create')

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

我尝试使用工匠命令:缓存:清除,路由:清除,配置:清除,配置:缓存,但没有任何效果,我不知道问题出在哪里!

I try artisan comands: cache:clear, route:clear, config:clear, config:cache and nothings works, i don't know where is the problem!

在localhost上可以正常运行

推荐答案

如果本地操作系统与生产服务器操作系统不同,则可能会遇到区分大小写的问题,并且找不到文件.确保您的文件名完全相同,大小写相同.尤其是在一个环境是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视图

在FileViewFinder.php第137行中的Laravel 5 InvalidArgumentException :查看未找到[.admin]

这篇关于Laravel:错误InvalidArgumentException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆