3. cú pháp khác để xác định nội dung của một phần nào đó (ok)
resources\views\child.blade.php
@extends('app')
@section('title', 'Laravelaaaaaaaa')
resources\views\app.blade.php
<html>
<head>
<title>Laravel</title>
</head>
<body>
@yield('title')
</body>
</html>
Previous2. Kế thừa layout (Extending layout) (ok)Next4. @yield còn có thể nhận tham số thứ hai làm giá trị mặc định (ok)
Last updated
Was this helpful?