简体   繁体   中英

Laravel 5.6 Reoccuring Error

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM