title: Laravel 5.2 - pluck() method returns array
body: <p>I'm trying to upgrade my project L5.1 -> L5.2. In <a href="http://laravel.com/docs/5.2/upgrade#upgrade-5.2.0">upgrade guide</a> there's one thing which isn't clear for me:</p>
  
  <blockquote>
    <p>The <code>lists</code> method on the Collection, query builder and Eloquent query
    builder objects has been renamed to <code>pluck</code>. The method signature
    remains the same.</p>
  </blockquote>
  
  <p>That's ok, rename refactoting from <code>lists()</code> to <code>pluck()</code> isn't a problem. But what with useful <code>pluck()</code> method which was in L5.0 and L5.1?</p>
  
  <p>From the <a href="http://laravel.com/docs/5.0/queries">5.0 documentation</a>:</p>
  
  <blockquote>
    <p>Retrieving A Single Column From A Row</p>
  
  <pre><code>$name = DB::table('users')-&gt;where('name', 'John')-&gt;pluck('name');
  </code></pre>
  </blockquote>
  
  <p>What is the alternative for old <code>pluck()</code> method in L5.2?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Example: </p>
  
  <pre><code>var_dump(DB::table('users')-&gt;where('id', 1)-&gt;pluck('id'));
  </code></pre>
  
  <p>L5.1:</p>
  
  <pre><code>// int(1)
  </code></pre>
  
  <p>L5.2:</p>
  
  <pre><code>// array(1) { [0]=&gt; int(1) }
  </code></pre>