title: Laravel @yield in code php
body: <p>How I can get content from <code>@yield</code> in PHP? </p>
  
  <p>Example I have in app.blade.php:</p>
  
  <pre><code>@yield('image-url', asset('/img/metaog.png?2'))
  </code></pre>
  
  <p>I want getimagesize from image-url:</p>
  
  <pre><code>&lt;?php 
      $image = getimagesize(yield('image-url', asset('/img/metaog.png?2')));
      $width = $image[0];
      $height = $image[1];
  ?&gt;
  </code></pre>
  
  <p>How I can get this correctly? My code is not working.</p>