title: Laravel get data based on foreign key
body: <p>So I have 2 tables, TABLE1 and TABLE2.
  They are linked throug Eloquent:
  <em>TABLE1 <strong>has many</strong> TABLE2's, and TABLE2 <strong>has one</strong> TABLE 1.</em>
  They are linked with foreign keys as such:
  <em>in TABLE2 table1_id -> links to -> TABLE1 id.</em></p>
  
  <p>How do I retrieve <strong>the entire table data or TABLE 2,</strong> + replace <em>table1_id</em> with a column of table1 (let's say by booktitle for example)?</p>
  
  <p>Sorry for the abstraction, but this is the best way I can explain it? :D</p>