title: Laravel - Check if @yield empty or not
body: <p>Is it possible to check into a blade view if @yield have content or not?</p>
  
  <p>I am trying to assign the page titles in the views:</p>
  
  <pre><code>@section("title", "hi world")
  </code></pre>
  
  <p>So I would like to check in the main layout view... something like:</p>
  
  <pre><code>&lt;title&gt; Sitename.com {{ @yield('title') ? ' - '.@yield('title') : '' }} &lt;/title&gt;
  </code></pre>