Is it possible to check into a blade view if @yield have content or not?
I am trying to assign the page titles in the views:
@section(\"title\", \"hi wor
I have a similar problem with the solution:
@section('bar', '') @hasSection('bar') @yield('bar') @endif //Output
The result will be the empty
Now, my suggestion, to fix this, is
@if (View::hasSection('bar') && !empty(View::yieldContent('bar'))) @yield('bar') @endif