Laravel @section Directive

This directive is used to add content to the field created with @yield. Of course the page about @extends is expanded for this.

// layout.blade.php
<div id="app">
    @yield('content')
</div>

We create the members page by expanding our layout page and add the page-specific content with @section to the content field.

// users.blade.php
@extends('layout') // expanded page

@section('content')
    users content
@endsection
Comments

There are no comments, make the firs comment