@yield
is a section which requires to be filled in by your view which extends the layout. You could pass it a default value through the second parameter if you'd like. Usages for @yield
could be the main content on your page.
@section
is a section which can contain a default value which you can override or append to. Think of usages for @section
as a sidebar, a widget section, etc.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community