@yield('title') @yield('content')
@extends('template') @section('title', 'Page Title') @section('content') @endsectionIn the first example, the template.blade.php file defines the basic HTML structure for the webpage. It contains placeholders for the page title and content, which are later filled by other blade templates. The second example shows how a page.blade.php file can extend the template by using the @extends directive, and then define the content that should appear in the yielded sections. Overall, the Template model is a powerful tool for building flexible, modular, and maintainable applications in PHP.