简体   繁体   English

为什么我的 laravel 应用程序没有加载所有刀片?

[英]why is my laravel app not loading all the blades?

So i got an html and css layout to put into blades and so i did, everything's working perfect aside from categoria.blade.php, i will attach a ss, all the assets are in the public folder and loading perfectly on other pages so here are the routes:所以我得到了一个 html 和 css 布局放入刀片中,所以我这样做了,除了 categoria.blade.php 之外,一切都运行良好,所以我将在公共文件夹中附加所有资产并完美加载其他页面是路线:

web.php web.php

and here is a ss of the folders and blade files:这是文件夹和刀片文件的 ss:

folders and blade files文件夹和刀片文件

here is a ss of the navbar and the li where the page is in anchor tag:这是导航栏的 ss 和页面在锚标记中的 li:

nav img导航图片

here is the output of that route:这是该路线的 output :

the route output路线 output

I tried using everything from this post Laravel view not found exception every command but still the same我尝试使用这篇文章Laravel 中的所有内容查看未发现每个命令的异常但仍然相同

i will put here the error log:我将把错误日志放在这里:

[2022-02-02 15:37:26] local.ERROR: View [categoria.blade.php] not found. [2022-02-02 15:37:26] local.ERROR:未找到查看 [categoria.blade.php]。 {"exception":"[object] (InvalidArgumentException(code: 0): View [categoria.blade.php] not found. at E:\proiecte IM\RoyalDiamondTools {"exception":"[object] (InvalidArgumentException(code: 0): View [categoria.blade.php] not found. at E:\proiecte IM\RoyalDiamondTools
oyalgroupchemical\vendor\laravel\framework\src\Illuminate\View\FileViewFinder.php:137) [stacktrace] #0 E:\proiecte IM\RoyalDiamondTools oyalgroupchemical\vendor\laravel\framework\src\Illuminate\View\FileViewFinder.php:137) [stacktrace] #0 E:\proiecte IM\RoyalDiamondTools
oyalgroupchemical\vendor\laravel\framework\src\Illuminate\View\FileViewFinder.php(79): Illuminate\View\FileViewFinder->findInPaths('categoria.blade...', Array) #1 E:\proiecte IM\RoyalDiamondTools oyalgroupchemical\vendor\laravel\framework\src\Illuminate\View\FileViewFinder.php(79): Illuminate\View\FileViewFinder->findInPaths('categoria.blade...', Array) #1 E:\proiecte IM\RoyalDiamondTools
oyalgroupchemical\vendor\laravel\framework\src\Illuminate\View\Factory.php(138): Illuminate\View\FileViewFinder->find('categoria.blade...') #2 E:\proiecte IM\RoyalDiamondTools oyalgroupchemical\vendor\laravel\framework\src\Illuminate\View\Factory.php(138): Illuminate\View\FileViewFinder->find('categoria.blade...') #2 E:\proiecte IM\RoyalDiamondTools
oyalgroupchemical\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(932): Illuminate\View\Factory->make('categoria.blade...', Array, Array) #3 E:\proiecte IM\RoyalDiamondTools oyalgroupchemical\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(932): Illuminate\View\Factory->make('categoria.blade...', Array, Array) #3 E:\proiecte IM \RoyalDiamondTools
oyalgroupchemical奥雅集团化学
outes\web.php(25): view('categoria.blade...') #4 E:\proiecte IM\RoyalDiamondTools outes\web.php(25): view('categoria.blade...') #4 E:\proiecte IM\RoyalDiamondTools
oyalgroupchemical\vendor\laravel\framework\src\Illuminate\Routing\Route.php(238): Illuminate\Routing\RouteFileRegistrar->{closure}() #5 E:\proiecte IM\RoyalDiamondTools oyalgroupchemical\vendor\laravel\framework\src\Illuminate\Routing\Route.php(238): Illuminate\Routing\RouteFileRegistrar->{closure}() #5 E:\proiecte IM\RoyalDiamondTools
oyalgroupchemical\vendor\laravel\framework\src\Illuminate\Routing\Route.php(208): Illuminate\Routing\Route->runCallable() #6 E:\proiecte IM\RoyalDiamondTools oyalgroupchemical\vendor\laravel\framework\src\Illuminate\Routing\Route.php(208): Illuminate\Routing\Route->runCallable() #6 E:\proiecte IM\RoyalDiamondTools
oyalgroupchemical\vendor\laravel\framework\src\Illuminate\Routing\Router.php(721): Illuminate\Routing\Route->run() #7 E:\proiecte IM\RoyalDiamondTools\ oyalgroupchemical\vendor\laravel\framework\src\Illuminate\Routing\Router.php(721): Illuminate\Routing\Route->run() #7 E:\proiecte IM\RoyalDiamondTools\

This happens when Laravel doesn't find a view file in your application.当 Laravel 在您的应用程序中找不到视图文件时,就会发生这种情况。 Make sure you have an index.php or index.blade.php in app/views directory.确保在 app/views 目录中有 index.php 或 index.blade.php 。

Laravel use this process when calling View::make: Laravel 在调用 View::make 时使用此过程:

For View::make('index') Laravel search: app/views/index.php.对于 View::make('index') Laravel 搜索:app/views/index.php。 For View::make('index.foo') Laravel search: app/views/index/foo.php.对于 View::make('index.foo') Laravel 搜索:app/views/index/foo.php。

The file need to end with two extensions: .php or.blade.php.该文件需要以两个扩展名结尾:.php 或.blade.php。

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

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