问题
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