【发布时间】:2017-11-18 18:56:54
【问题描述】:
this is the code in the main.blade.php so i place an @yield('content') inside the div tags of my bootstrap template but it's that getting the display that should be on the home.blade.php
<div class="container">
@yield('content')
</div>
this is the code on my home.blade.php
@extends('main')
@section('content')
<div class="row">
<h1>this content should show on my main</h1>
</div>
@endsection
I dont know why its not working it seems like the @yield and @section is not working by the I'm using laravel 5.4 and it's not displaying any error then what could be wrong
I dont know why its not working it seems like the @yield and @section is not working by the I'm using laravel 5.4 and it's not displaying any error then what could be wrong
我不知道为什么它不起作用,我使用 laravel 5.4 似乎 @yield 和 @section 不起作用并且它没有显示任何错误,那么可能是什么问题
【问题讨论】:
标签: twitter-bootstrap laravel layout laravel-blade