How to add projection to moloquent select
<p>i know, i can do this in mongoDb to get all mongoIds: </p>

<pre><code>db.getCollection('foo').find({},{_id:1})
</code></pre>

<p>This returns a set of all entries with just one element, the _id.</p>

<p>I need to this in PHP. I'm using Laravel 5.3 and Moloquent and could'nt find a way to add a projection to my select.</p>

<p>Does anyone know how to do this?</p>