請在您的主文件中執(zhí)行以下操作:
<HTML>
<head></head>
<body>
@yield('section')
</body>
</html>
在另一個檔案中
@extends('layouts.app')
@section('section')
<p>This is appended to the master sidebar.</p>
@endsection
您可以在https://laravel.com/docs/10.x/blade#extending-a-layout閱讀更多內(nèi)容
點贊 +0
P粉596161915