title: Use number in where condition in Laravel Query
body: <p>The below query works well in mysql but how to represent the same thing using Laravel.</p>
  
  <pre><code>select * from user_subscription where vendor_id = 'user_100' 
  and 0 = (select count(*) from user_restricted_dates where vendor_id = 'user_100')
  </code></pre>
  
  <p>I tried with code but gives error as <strong>unknown column '0' in where clause</strong></p>
  
  <pre><code>$list = UserSubscription::where('vendor_id', '=', $vendor_obj-&gt;vendor_id)
      -&gt;where(0, '=', "(select count(*) from user_restricted_dates where vendor_id = 'user_100'")
      -&gt;get();
  </code></pre>
  
  <p>Well the error indicates what it is but how to represent it</p>