title: Laravel relations and how to display them
body: <p>So I suppose this is just me but could somebody explain how to fetch the name which is stored in table tbl_faq_categorie which has a relation to tbl_faq?</p>
  
  <p>In my Faq model I've got this:</p>
  
  <pre><code>public function faqCategorie()
  {
      return $this-&gt;belongsTo('App\FaqCategorie', 'Sequence');
  }
  </code></pre>
  
  <p>In my FaqCategorie model I've got this:</p>
  
  <pre><code>public function faqNaam()
  {
      return $this-&gt;hasMany('App\Faq', 'Seq_Categorie', 'Sequence');
  }
  </code></pre>
  
  <p>And I need to display the data in show.blade.php</p>
  
  
  
  <pre><code>&lt;h6&gt;Vraag&lt;/h6&gt;
  &lt;div&gt;{!! $data-&gt;Vraag !!}&lt;/div&gt;
  
  &lt;h6&gt;Antwoord&lt;/h6&gt;
  &lt;div&gt;{!! $data-&gt;Antwoord !!}&lt;/div&gt;
  
  &lt;h6&gt;Opmerking&lt;/h6&gt;
  &lt;div&gt;{!! $data-&gt;Opmerking !!}&lt;/div&gt;
  
  &lt;h6&gt;Categorie&lt;/h6&gt;
  &lt;div&gt;&lt;Name should be inserted here&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Taken out of FaqController:</p>
  
  <pre><code>public function show($Sequence)
  {
          $data = Faq::find($Sequence);
          return view('faq.show', array('data' =&gt; $data));
  }
  </code></pre>
  
  <p>table structures:</p>
  
  <p>tbl_faq: <a href="http://puu.sh/mbohD.png" rel="nofollow">http://puu.sh/mbohD.png</a></p>
  
  <p>tbl_faq_categorie: <a href="http://puu.sh/mbojI.png" rel="nofollow">http://puu.sh/mbojI.png</a></p>