Laravel 5.6 Reoccuring Error

ぃ、小莉子 提交于 2019-12-25 03:22:59

问题


I have an error that occurs no matter what the actual error is within Laravel 5.6 It just keeps saying Could not find resource 'views/layouts.html.php' in any resource paths.(searched: /var/www/{domain}/vendor/filp/whoops/src/Whoops/Handler/../Resources) for everything that causes an error and doesn't display the full debug page that Laravel usually displays. I'm not sure what caused this or what I could do to fix it besides reinstalling Laravel, which I'd highly prefer not to do. Does anybody have any ideas what file I might be missing or what might be causing this?

Image of full error: https://i.imgur.com/5dFhlYg.png


回答1:


why you use layout.html.php. Laravel has a template engine blade. you can use layout.blade.php

You Need to use views.layout. example:

   return view('views.layout');

But note there are views is a folder name. if you create a folder under views folder then you can call views folder. Laravel default views folder is views don't need to call on return path.



来源:https://stackoverflow.com/questions/50596309/laravel-5-6-reoccuring-error

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