I just upload my laravel project to cpanel on publich_html dir also i copy all files of public folder and move to root dir (public_html) now the view is not found error comes every time. I have make the changes in index.php file like below
@tehseen If file is located on the same location, from where you are trying to access it. Then it might be a cache issue. Cache might cause the issue. try clearing out the cache.
@tehseen You are returning your view in wrong way. Do it like this.
public function index(){
return view("frontend.pages.home");
}
Use dot(.) for separating folders. For more go on the link.
If still doesn't work,return an array from index method and check whether it is working or not. Share location of view and laravel version over here, and take care of cache as well.