Laravel 我无法显示来自控制器的某些信息,这些信息必须在@section(';content';)@endsection之间显示

Laravel 我无法显示来自控制器的某些信息,这些信息必须在@section(';content';)@endsection之间显示,laravel,Laravel,路线 Route::get('/pages/about-us','CMSController@aboutUs'); 控制器 public function aboutUs() { $aboutus = ContentManagementSystem::where('url', 'about-us')->first(); return view('cms.aboutus', compact('aboutus')); } 查看页面

路线

Route::get('/pages/about-us','CMSController@aboutUs');
控制器

     public function aboutUs()
    {
        $aboutus = ContentManagementSystem::where('url', 'about-us')->first();

        return view('cms.aboutus', compact('aboutus'));
    }
查看页面

@extends('admin.front\u layouts.design'))
@章节(‘标题’、‘关于我们’)
@第节(“内容”)
{{$aboutus->title}
{{$aboutus->description}

@端部
这里我不能显示laravel变量,但当我简单地使用

    <h2>{{$aboutus->title}}</h2>
    <p>{{$aboutus->description}}</p>
{{$aboutus->title}
{{$aboutus->description}

如何显示completel。

检查您的“admin.front\u layouts.design”布局 是否存在任何@yield('çcontent')或@yield('content')


我想你应该在查看页面中写@section('content'),这是因为你没有在你的设计页面中添加
@yield()


进入你的
管理首页。设计
页面并添加
@yield('content')

你确定它是
内容而不是
内容
?你的错误是什么?记住你摇滚了它…多棒的观察..它的内容。但我不知道这是怎么发生的。。