Laravel 5 - Server Error - View Inside View
I have an error that I cannot solve, everything works fine on my machine, however, when I upload laravel to the server, if I have a view inside the view, laravel throws an error:
InvalidArgumentException in FileViewFinder.php line 140:
View [articles.welcome] not found.
Steps i used to host laravel on server:
1 - Block the whole application.
2 - SSH on the server, create a "laravel" folder and point "public_html" to the "laravel / public" folder.
3 - set database parameters in .env file.
I checked if the files exist in the directory and they do exist.
Useful links to my site:
My mistake
Only one kind, no mistakes. (Real data)
In my machine, I have installed laravel with composer and XAMP to serve localhost.
The server is powered by CPanel.
ANSWER!!
It turns out that linux paths are case sensitive and since I was returning a view like this
return view('articles.welcome')
Laravel mapped the path to resources / views / articles, but my folder was "Articles".
return view('articles.welcome')
It seems that windows paths are not case sensitive.
source to share
Is this file there (as per your linked glass) /home/brunomart/laravel/resources/views/articles/welcome.blade.php
?
Before you answer yes. Are you sure? SSH to your server and enter something like:
ls /home/brunomart/laravel/resources/views/articles/welcome.blade.php
to prove that it really exists. Past trying to runcomposer dump-autoload
source to share