0
我使用Laravel的Bladetemplate。有沒有辦法爲不同的視圖設置不同的標題,只有一個包含在master.blade.php中?不同視圖中的不同標題(刀鋒模板,Laravel)
master.blade.php
@include("elements.header")
@yield('content')
@section("footer")
@show
view.blade.php
@extends("layouts.master")
@section("title")
@stop
@section("content")
@include("elements.error")
@section("footer")
@include("elements.footer")
@stop