Laravel - Blade Templates - Section Directives

You may determine if a template inheritance section has content using the @hasSection directive:

    
    @hasSection('navigation')
        
@yield('navigation')
@endif

You may use the sectionMissing directive to determine if a section does not have content:

    
    @sectionMissing('navigation')
        
@include('default-navigation')
@endif