只要打开最近的项目,就会无缘无故地出现“Boom”错误。
Undefined property: Illuminate\View\Factory::$iteration (View: /mnt/d/web/etapas-backend/resources/views/components/landing-pages/screenshots.blade.php) (View: /mnt/d/web/etapas-backend/resources/views/components/landing-pages/screenshots.blade.php)
这是我机器上的 SS
最佳答案
错误消息几乎相同,但在 Laravel 中 Facade\Ignition\Exceptions\ViewException 未定义属性:Illuminate\View\Factory::$startSection(查看:/home/steven/Documents/sphereConsultancy/sandbox/myfirstubuntu/resources/views/welcome.blade.php)
这是我在layout.blade.php中的代码
@extends('layout')
@section
<h1>My First Website</h1>
@endsection
正确的代码 - 注意添加的 @section('content') 这是我在layout.blade.php 中的代码
@extends('layout')
@section('content')
<h1>My First Website</h1>
@endsection
关于php - 如何修复 Laravel Nova 中的 `Undefined property: Illuminate\View\Factory::$iteration` 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54209847/