title: Laravel 5.1 detach with where
body: <p>I want detach without some records </p>
  
  <p>my role_user table is    id | role_id | user_id</p>
  
  <pre><code>&lt;?php
  
     $user-&gt;roles()-&gt;detach();
  ?&gt;
  </code></pre>
  
  <p>I don't want detach all records some records need (I mean find solution to where clause inside detach() ). How can I do this? Thank you.   </p>