title: Laravel 5 update all Pivot entries
body: <p>I have a Many-to-Many-Relationship between the User and the Customview Model:</p>
  
  <pre><code>use Illuminate\Foundation\Auth\User as Authenticatable;
  
  class User extends Authenticatable
  {
      /**
       * Customview relation
       * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
       */
      public function customviews ()
      {
          return $this-&gt;belongsToMany( Customview::class )-&gt;withPivot( 'default' );
      }
  }
  </code></pre>
  
  <p>Now, I want to update <strong>all the user's customview-assignments</strong> and reset their default flag to 0.</p>
  
  <p>By hand this should look like this in SQL (the pivot table's name is customview_user):</p>
  
  <pre><code>UPDATE `customview_user` SET `default`=0 WHERE `user_id`=&lt;user_id&gt;;
  </code></pre>
  
  <p><br/>
  Is there a way to do this like this:</p>
  
  <pre><code>$user-&gt;customviews()-&gt;...update(['default' =&gt; 0]);
  </code></pre>