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

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?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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

Method 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)


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x