Laravel @yield Directive

This directive creates a field with a specific name. Thus, with the @section directive, content can be added to the relevant field. Usually you will have a master page like index, and there is a field for content, so subpages will dynamically display content in that field using @section.

<div id="app">

For example, on the members page, data is added to this field with @section.

Of course, what should not be forgotten here, you need to use the layout page to be expanded by specifying it with the @extends directive.
Additionally the difference between @stack and @push is that in this directive we can only add content once. If you want to add content more than once, you can use @stack and @push directives.


There are no comments, make the firs comment