title: Laravel relations with multiple models
body: <p>I am building a blog application and I have </p>
  
  <p><code>Post</code>, <code>City</code>, <code>Neighbourhood</code>, <code>SubNeighbourhood</code>. </p>
  
  <p>The relations that I have until now are between <code>City</code>, <code>Neighbourhood</code> and <code>subNeighbourhood</code> like follows: </p>
  
  <pre><code>subNeighbourhood belongs to Neighbourhood 
  Neighbourhood belongs to city
  </code></pre>
  
  <p>The second relation is like </p>
  
  <pre><code>City hasMany Neighbourhoods 
  Neighbourhood hasMany subNeighbourhoods 
  </code></pre>
  
  <p>My problems are when I create the post. The posts table have <code>id_city</code>, <code>id_neighbourhood</code> and <code>id_subNeighbourhood</code>. </p>
  
  <p>The questions that I have are: </p>
  
  <p>If the post structure is correct? I feel like having many "id_..." is not ok. </p>
  
  <p>Second issue is how do I write the relation in posts? All the columns "id_..." are having foreign keys to each corresponding table. </p>