如何修复Laravel Nova中的“未定义的属性:照亮视图工厂::$iteration”错误



只需打开最近的项目,就会无缘无故地出现"Boom"错误。

未定义的属性:Illuminate\View\Factory::$iteration (视图:/mnt/d/web/etapas-backend/resources/views/components/landing-pages/screenshots.blade.php)

(查看:/mnt/d/web/etapas-backend/resources/views/components/landing-pages/screenshots.blade.php)

这是我机器上的SS

http://prntscr.com/m7r3h6

错误消息几乎相同,但在 Laravel 中外观\点火\异常\视图异常未定义的属性: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("内容")这是我在layout.blade中的代码.php

@extends('layout')
@section('content')
<h1>My First Website</h1>
@endsection

当您启动@section并且没有关闭它时会发生此错误加@endsection

最新更新