PHP Blade === ###### tags: `PHP` `Blade` # Blade Template > https://laravel.com/docs/5.7/blade#template-inheritance > - @csrf 安全性目的 進到頁面後, 會開啟一個 session 紀錄一串 token 若送表單時沒帶著 token 或是 token 錯誤, 表單都會被拒絕 - @method 方法偽裝, 因為 html 不能直接送 METHOD 為 PATCH 之類的表單 @yield('content') @include('layouts.partials.footer') @extends('layouts.master') @section('title', '商品列表') @section('content') @endsection @foreach (... as ...) @endforeach @if @endif