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">

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

    users content

There are no comments, make the firs comment