title: Laravel Many to Many How to form query in eloquent or in query builder
body: <p>From the following query im getting the expected result:</p>
  
  <pre><code>SELECT *
      FROM rooms r
      JOIN amenities_room am 
        ON r.id = am.room_id 
      JOIN amenities a 
        ON am.amenities_id = a.id
       AND a.id IN (2,3)
  GROUP BY r.id
    HAVING COUNT(*)=2;
  </code></pre>
  
  <p>How can i for the query in laravel way in (Eloquent or in Query Builder)</p>
  
  <p>Note:
  The following tables are involved:</p>
  
  <p><strong>rooms</strong><br/>
  id<br/>
  number<br/>
  name<br/></p>
  
  <p><strong>amenities</strong><br/>
  id<br/>
  name</p>
  
  <p><strong>amenities_room</strong><br/>
  room_id<br/>
  amenities_id<br/></p>