Laravel 5.1 View not found

前端 未结 4 667
遇见更好的自我
遇见更好的自我 2021-01-18 13:47

this seems to be an issue that pops up every now and then within Laravel. I was writing a CRUD controller with a view to go with it, however upon testing I got the Inv

相关标签:
4条回答
  • 2021-01-18 14:14

    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.

    0 讨论(0)
  • 2021-01-18 14:22

    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

    0 讨论(0)
  • 2021-01-18 14:23

    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.

    0 讨论(0)
  • 2021-01-18 14:30

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

    0 讨论(0)
提交回复
热议问题