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
Use View::hasSection to check if a section is defined and View::getSection to get the section contents without using the @yield Blade directive.
View::hasSection
View::getSection
@yield
{{ View::hasSection('title') ? View::getSection('title') . ' - App Name' : 'App Name' }}