title: Laravel variable in og:tag
body: <p>After looking around for a while I haven't found what I was looking for, so here I go.</p>
  
  <p><strong>Is there a way to set facebook's og:tags with a variable from your database?</strong></p>
  
  <p>I am using Laravel 5.2, and I have a app.blade with my html template where I call a <code>@section('content')</code> to show each specific page.  </p>
  
  <p>In the app.blade (master page) I have this code</p>
  
  <pre><code>&lt;meta property="og:url"           content="@yield('url')" /&gt;
  &lt;meta property="og:type"          content="@yield('type')" /&gt;
  &lt;meta property="og:title"         content="@yield('ogtitle')" /&gt;
  &lt;meta property="og:description"   content="@yield('description')" /&gt;
  &lt;meta property="og:image"         content="@yield('image')" /&gt;
  </code></pre>
  
  <p>Which I set on every specific page like this:</p>
  
  <pre><code>@section('url', Request::fullUrl())
  @section('image', 'http://www.myurl.eu/img/share.jpg')
  @section('type', 'article')
  @section('ogtitle', 'Title | Careers')
  @section('description', 'My personal website title')
  </code></pre>
  
  <p>Now I have a section in my website <strong>myurl.eu/careers</strong> where I have several detail pages for each open job position. Now I would like to set the <code>og:title</code> and the <code>og:description</code> to a variable from my database. </p>
  
  <p>Trying this (below) did not fetch anything (so sharing is blank) after debuggin and scraping the <a href="https://developers.facebook.com/tools/debug/sharing/" rel="nofollow">facebook tool</a> a few times.</p>
  
  <pre><code>@section('description', $job-&gt;description)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>@section('description', {{$job-&gt;description}})
  </code></pre>
  
  <p>Thanks</p>