title: Laravel - set meta tag dynamically with @section
body: <p>i would like implement facebook share button function whereby it will capture the meta tags information during user hit the share button.</p>
  
  <p>I've a head.blade.php that include some meta tag to be captured. Example</p>
  
  <pre><code>&lt;meta property="og:url" content="@yield('facebook_share_url')"&gt;
  &lt;meta property="og:image" content="@yield('facebook_share_image')"&gt;
  &lt;meta property="og:description" content="@yield('facebook_share_description')"&gt;
  </code></pre>
  
  <p>And i have a default.blade.php.</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
      @include('includes.head')
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="container"&gt;
  
      &lt;header class="row"&gt;
          @include('includes.header')
      &lt;/header&gt;
  
      &lt;div id="main" class="row"&gt;
          @yield('content')
      &lt;/div&gt;
  &lt;/div&gt;
  
  @include('includes.footer')
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So when i browse to some url says www.example.com/details, the default.blade.php will yield the content from this details.blade. And at this moment i would like to change the facebook meta tag properties, so i did something like below in details page.</p>
  
  <pre><code>@section('facebook_share_image', 'This is a description')
  @section('facebook_share_description', 'This is an individual page title')
  </code></pre>
  
  <p>The code work fine but i would like to render it from my view data. Something like <code>@section('facebook_share_description', {{ $data-&gt;description }})</code></p>
  
  <p>but when i check my meta tag, it gives me nothing. Is it possible to do so?</p>