title: Laravel 5.2 - Update previous query
body: <p>I have this query:</p>
  
  <pre><code>Sendqueue::select()
              -&gt;where('userID', Session::get('uid'))
              -&gt;where('campaign', $id)
              -&gt;where('status', 'pending')
              -&gt;update(array(
                  'status'      =&gt; 'stopped',      
                  ));
  </code></pre>
  
  <p>The problem is that the amount of records it has to go through to do the update causes it to take around 15 minutes or so to finish.</p>
  
  <p>I would like to split it up so the select and update queries are separate entities.  Something sort of like this:</p>
  
  <pre><code>$pending = Sendqueue::select()
              -&gt;where('userID', Session::get('uid'))
              -&gt;where('campaign', $id)
              -&gt;where('status', 'pending')
              -&gt;get();
  
  $pending-&gt;update(array(
              'status'      =&gt; 'stopped',      
              ));
  </code></pre>
  
  <p>How would I go about doing this?  Or is there an easier way?</p>
  
  <p>Thanks!</p>