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 world")
So I would like to check in the main layout view... something like:
<title> Sitename.com {{ @yield('title') ? ' - '.@yield('title') : '' }} </title>