laravel blade check if yielded content exists
snippet in php

laravel blade check if yielded content exists

user2549

<title>
    @if(View::hasSection('title'))
        @yield('title')
    @else
        Static Website Title Here
    @endif
</title>