title: How to use where with Laravel Eloquent Model
body: <p>I am attempting to</p>
  
  <pre><code> $orders = \App\Order::with(['Customer'])-&gt;where('customers.first', 'LIKE', "{$filterFirst}%");
  </code></pre>
  
  <p>However, I am getting</p>
  
  <pre><code> Column not found: 1054 Unknown column 'customers.first' in 'where clause' (SQL: select * from `orders` where `customers`.`first` LIKE %)
  </code></pre>
  
  <p>How can I use <code>where</code> as well as <code>with</code>?</p>