Google News
logo
Laravel - Interview Questions
What is yield in Laravel?
Laravel provides @yield for defining a section in a layout, getting the content from the child page, and submitting it to a master page. So whenever you use Laravel to execute the blade file, it first checks whether you have extended the master layout or not. If so, it moves to the master layout and commences getting the @sections.
Advertisement