Blade - 模板
是laravel中的模板引擎
兩大特性
1. 模板繼承
@extends('layouts.app')
2. 切片
@yield('content')
3. 引入其他頁面
@include('admin.layou.header')
4. 定義
@section
//父頁面
@section('定義')
內(nèi)容
@show
//子頁面實(shí)現(xiàn)
@section('sidebar')
@parent
//對(duì)父類的追加
<p>This is appended to the master sidebar.</p>
@endsection
//對(duì)父頁面的傳參
@section('title', 'Page Title')