title: Laravel Postgre invalid text representation
body: <p>I got an error from my Laravel App </p>
  
  <blockquote>
    <p>Invalid text representation: 7 ERROR: invalid input syntax for type boolean: "2" (SQL: select * from "tasks" where extract(day from "due_date") = 20 and "status" != 2)</p>
  </blockquote>
  
  <p>my Query on Laravel Controller is as follows:</p>
  
  <p><code>$datav['dueTasks'] = Task::whereDay('due_date', date('d'))->where('status','!=','2')->get();</code></p>
  
  <p>this is a migrate from mysql db, so The problem might be with the status not equal 2 syntax.</p>
  
  <p>anyone knows how to fix this?
  Thanks!</p>