Hosted Laravel 5.4 App shows “View [path.to.viewfile] not found.”

扶醉桌前 提交于 2020-01-06 20:19:24

问题


I have tried hosting my Laravel app in Godaddy. The homepage works well as well as the log ins and dashboard after logging in. But the other views return a InvalidArgumentException in FileViewFinder.php line 137: "View [path.to.viewfile] not found.

I'm returning the view from the controller with return view::make('path.to.viewfile')

It works well on my localhost using XAMPP. Does anybody know how to fix this?


回答1:


Have you checked filenames and permission? file names are case sensitive in Linux (your hosting provider uses it)




回答2:


You have to change directory permissions at your server. Directories and files within the storage and the bootstrap/cache directories should be writable (e.g. chmod 777)



来源:https://stackoverflow.com/questions/42332652/hosted-laravel-5-4-app-shows-view-path-to-viewfile-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!