Support the ongoing development of Laravel.io →
posted 9 years ago
Blade
Last updated 2 years ago.
0
moderator Solution

@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.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.