Get only specific attributes with from Laravel Collection
<p>I've been reviewing the documentation and API for Laravel Collections, but don't seem to find what I am looking for:</p>

<p>I would like to retrieve an array with model data from a collection, but only get specified attributes.</p>

<p>I.e. something like <code>Users::toArray('id','name','email')</code>, where the collection in fact holds all attributes for the users, because they are used elsewhere, but in this specific place I need an array with userdata, and only the specified attributes.</p>

<p>There does not seem to be a helper for this in Laravel? - How can I do this the easiest way?</p>