title: Laravel 5 - Many to Many - Attach versus Save
body: <p>I have a many to many relationship between two models, users and roles. Is there a difference between saving a relationship using the save() method and using the attach() method?</p>
  
  <pre><code>$user-&gt;roles()-&gt;save($role, ['expires' =&gt; $expires]); //using save
  $user-&gt;roles()-&gt;attach($roleId, ['expires' =&gt; $expires]);// using attach
  </code></pre>
  
  <p>Are the two equivalent? I personally dont see the difference. Thoughts?</p>