title: Laravel eloquent query where like relationship?
body: <p>My database skills aren't the best and I'm looking for help in constructing a query in Laravel.</p>
  
  <p>I have a table A and table B, table A has a field referencing fields in table B</p>
  
  <p>So I could do <code>$tableA-&gt;tableB-&gt;title</code></p>
  
  <p>What I want is something like <code>$tableA-&gt;tableB-&gt;where('title', 'LIKE', $query)-&gt;get()</code></p>
  
  <p>What I want to do is do a <code>WHERE LIKE</code> and return the table A results but to search within table B in a specific column (for this example the column is title).</p>
  
  <p>How would I go about doing this?</p>
  
  <p>Thanks</p>