title: remove row from pivot table in laravel
body: <p>I have tables <code>(projects, roles, scopes, shifts, users)</code> and a table <code>(project_role_scope_shift_user)</code> as pivot.</p>
  
  <p>I want to delete specific row like:</p>
  
  <pre><code>[project_id = 1 , scope_id = 2 , ... ]
  </code></pre>
  
  <p>However, detach method doesn't work correctly.</p>
  
  <pre><code>$user-&gt;roles()-&gt;detach(role)      !not working   =&gt; removes all rows of that role
  
  $user-&gt;roles()-&gt;detach(role, ['project_id' =&gt; $projectId, 'scope_id' =&gt; $scopeId, 'shift_id' =&gt; $shiftId]);  =&gt; this does not work too, removes all rows of that role
  </code></pre>