Checking if section is set in Laravel 5.7

2018-11-13 18:12:44
  • Solved
Sort by:
  • Image
    Thinking of a bio :)

    you can use @hasSection('section_name') to test that

    /* Test if the section has been passed */
    
    @hasSection('sidebar')
        <div class="column is-one-quarter">
            @yield('sidebar')
        </div>
    @endif

    8 months ago
Know someone who could use Hyper Host? Refer them and make money today! Become an affiliate ›