title: How to create conditional query with IF(expression, value_if_true,value_if_false) in laravel?
body: <p>How to create query like this ?</p>
  
  <pre><code>SELECT id,name,if(id &gt; 17,'yes','no')as present FROM `ref`;
  </code></pre>