@section and @endSection
The @section directive is used to define a section of content that can be extended in a layout. The @endSection directive marks the end of the section.
Syntax
@section('section_name')
<!-- Section Content -->
@endSectionExample:
@section('title')
My Website Title
@endSectionThis defines a section named title that can be rendered in a layout file.
Last updated