Difference between pluck() and lists() in laravel?
<p>This is so confusing to me. I don't see any difference between these two methods. If I <code>var_dump()</code> the object returned by these methods, they are exactly the same but the book by Dayle Rees says that <code>pluck()</code> returns a single value from the given column (the first one) while the <code>lists()</code> method returns all the values from the given column. I can't even figure out why two different methods exist to do the same thing.</p>

<p><strong>Example</strong></p>

<pre><code>Route::get('getalbum', function() {
    $data = \App\Album::pluck('artist');
    var_dump($data); // a lot of text, let's call it 'object'

    $data = \App\Album::lists('artist');
    var_dump($data); // exact , exact, exact same 'object'
});
</code></pre>