Laravel view not found exception

前端 未结 16 1679
遇见更好的自我
遇见更好的自我 2020-11-29 03:44

I have problem with laravel view is not found by route function I did composer dumpautoload but no use ArticleController.php



        
相关标签:
16条回答
  • 2020-11-29 04:04

    Create the index.blade.php file in the views folder, that should be all

    0 讨论(0)
  • 2020-11-29 04:07

    Just in the controller call

    return View('index');
    

    without

    ::make
    
    0 讨论(0)
  • 2020-11-29 04:07

    Use this on your cmd then run your project.

    php artisan config:cache php artisan route:cache php artisan controller:cache php artisan optimize:clear

    0 讨论(0)
  • 2020-11-29 04:11

    I had the same error. I created a directory under views direcotry named users and created an index.blade.php file in it. When calling this file you should write users.index to indicate your path. Or just create index.blade.php file under views. hope this will help someone who gets the same problem

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