简体   繁体   English

将我的管理面板仪表板集成到laravel中后出现错误消息

[英]Error message after integrating my admin panel dashboard in laravel

This is error I get when I try to integrate my admin panel dashboard in laravel 当我尝试在laravel中集成管理面板仪表板时遇到此错误

View [layouts.adminLayouts.admin_header] not found. 
(View: D:\admin\resources\views\layouts\adminLayout\admin_design.blade.php) 
(View: D:\admin\resources\views\ 

This happens when Laravel doesn't find a view file in your application. 当Laravel在您的应用程序中找不到视图文件时,就会发生这种情况。

  1. Verify that the template needed exists 验证所需模板是否存在

As @omar-abdullah said, go to views/layouts/adminLayouts/ and verify that admin_header.blade.php exists (it may also work if you have called it admin_header.php ). 正如@ omar-abdullah所说,转到views/layouts/adminLayouts/并验证admin_header.blade.php是否存在(如果您将其命名为admin_header.php则可能也可以admin_header.php )。

  1. Verify that the template has the correct permission 验证模板具有正确的权限

Make sure it has the correct file permission (the web server should be able to read it!). 确保它具有正确的文件许可权(Web服务器应该能够读取它!)。 That could happen on, for instance, linux machines. 例如,这可能发生在linux计算机上。

Type ll and make sure the permissions, file owner and group is the same for this template and for others, and that the adminLayout folder has the same permisison than other similar folders. 键入ll ,并确保此模板和其他模板的权限,文件所有者和组相同,并且adminLayout文件夹具有与其他相似文件夹相同的权限。

  1. Cache error? 缓存错误?

If the problem persists, it might be a cache error. 如果问题仍然存在,则可能是缓存错误。

Run the command under the project folder: 在项目文件夹下运行命令:

php artisan optimize --force
php artisan config:cache
php artisan route:cache

- --

See laravel view not found exception 看到laravel视图找不到异常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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