title: Database relation design and laravel eloquent
body: <p>I'm bit confuse in database relations.I'm using laravel and need a good practice of relations . I have four tables teachers , classes ,sections and subjects .So teacher teaches multiple classes of multiple subjects in multiple sections.
  e.g</p>
  
  <pre><code>teacher1 teaches class9 of subject English in section A and B
  teacher1 teaches class9 of subject Math in section A 
  teacher1 teaches class9 of subject Chemistry in section A and b
  
  teacher2 teaches class9 of subject English in section A and B
  teacher2 teaches class9 of subject Math in section A 
  teacher2 teaches class9 of subject Chemistry in section A and b
  
  teacher2 teaches class10 of subject English in section A and B
  teacher2 teaches class10 of subject Math in section A 
  teacher2 teaches class10 of subject chemistry in section A and c
  </code></pre>
  
  <p>So this is my scenario i have four tables without relation like teachers with records of teacher , classes with records class like 10th , 9th etc ,subjects with records like English , Math etc and sections like A ,B , C etc.
  So what are the best practices of creating relationship between these tables and how could used eloquent relation in laravel.</p>
  
  <p><a href="https://i.stack.imgur.com/c2tPi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c2tPi.png" alt="enter image description here"></a></p>
  
  <p>This is my ER diagram.Is it correct design if yes then how could create eloquent relationship in laravel?</p>