Laravel query builder binding parameters more than once
<p>I'm trying to bind the same value to some parameter in a raw query (Laravel 5.2)</p>
<pre class="lang-php prettyprint-override"><code>//this is a non practical example ,only for clarify the question

DB::table('users as u')
-&gt;select('id')
-&gt;whereRaw('u.id &gt; ? or u.id &lt; ? or u.id = ?',[$id, $id, $id])
-&gt;first();
</code></pre>
<p>is there any way to bind the same parameters at once(prevent duplicating values in <code>[$id, $id, $id]</code>)?</p>