title: How to escape a query using an Eloquent model select?
body: <p><code>DB::select</code> takes a second parameter as <a href="https://stackoverflow.com/a/18951103/65387">described here</a>, but <code>Eloquent::select</code> does not.</p>
  
  <p>Here's my query:</p>
  
  <pre><code>Feature::where('company_id', Auth::user()-&gt;company_id)
              -&gt;select('id','name',DB::raw("exists(select * from vehicle_features vf where vf.vehicle_id=$id and vf.feature_id=feature.id) as `checked`"))
              -&gt;orderBy('name')-&gt;get(),
  </code></pre>
  
  <p>How can I ensure <code>$id</code> is escaped properly?</p>