Laravel 5.1 View not found

懵懂的女人 提交于 2019-12-01 18:07:51
Fairuz Sulaiman

Please use terminal

homestead ssh > Press Enter
vagrant@homestead cd /Path_of_Your_Project/
vagrant@homestead:~/Path_of_Your_project php artisan cache:clear
vagrant@homestead:~/Path_of_Your_project php artisan config:cache

Sorry about my English

Turns out I had spelt blade incorrectly, took a second pair of eyes to notice it though.

$ ls resources/views/crud/booking/
crud.balde.php  index.balde.php

Was definitely a lesson to always double check the small things when debugging. Thanks for the help.

For someone who don't have SSH Access, There are two ways to solve this problem.

If you don't have any plugin of default Laravel package, First, Just remove the bootstrap/cache/config.php to solved the file,

OR

If you have any plugin of default Laravel package, Change all related path mentioned bootstrap/cache/config.php into the exact path which allocated the laravel project.

Remember that Linux is case sensitive!

I had something like this:

return view('MyView', $data);

And it was working on my environment (Mac OS), but not on the deployment server (Ubuntu)!

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