title: How to Join Eloquent and Query Builder in one query statement in laravel
body: <p>I have 2 queries that needed to join 1st is eloquent and 2nd is query builder,</p>
  
  <p>1st Query</p>
  
  <pre><code>$products = Product::all();
  </code></pre>
  
  <p>2nd Query</p>
  
  <pre><code>$inventory = DB::table('product_warehouse')
  -&gt;where('product_id', $product_id)
  -&gt;where('warehouse_id', $warehouse_id)
  -&gt;first();
  </code></pre>
  
  <p>How to merge this 2 queries into elouquent way ?</p>