title: Quotation marks around id in eloquent models are necessary on production site but don't work on localhost
body: <p>So I have a query that, on my production installation requires quotations around "id" in the 'where' method, otherwise returns no results. On my local installation, the exact opposite is happening. If I'm using quotations, it's not functioning. </p>
  
  <p>Production</p>
  
  <p><code>'invoices' =&gt; Auth::user()-&gt;invoices-&gt;where('paid', "0")</code></p>
  
  <p>Localhost</p>
  
  <p><code>'invoices' =&gt; Auth::user()-&gt;invoices-&gt;where('paid', 0)</code></p>
  
  <p>It's really strange, and I'd really like to not have go in and change this whenever I deploy from github. Is this a common issue? I can't seem to find anything about it. </p>
  
  <p>I'll list some Laravel query logs:</p>
  
  <p>Local install with quotations around the int (not working)</p>
  
  <pre><code>Array ( 
      [0] =&gt; Array ( 
          [query] =&gt; select * from `users` where `users`.`id` = ? limit 1 
          [bindings] =&gt; Array ( 
              [0] =&gt; 1 
          ) 
          [time] =&gt; 10.49 
      )
      [1] =&gt; Array ( 
          [query] =&gt; select * from `invoices` where `invoices`.`user_id` = ? and `invoices`.`user_id` is not null 
          [bindings] =&gt; Array ( 
              [0] =&gt; 1 
          ) 
          [time] =&gt; 1.39 
      ) 
  )
  </code></pre>
  
  <p>Local install without quotations around the int (working)</p>
  
  <pre><code>Array (     
      [0] =&gt; Array ( 
          [query] =&gt; select * from `users` where `users`.`id` = ? limit 1 
          [bindings] =&gt; Array ( 
              [0] =&gt; 1 
          ) 
          [time] =&gt; 0.84 
      ) 
      [1] =&gt; Array ( 
          [query] =&gt; select * from `invoices` where `invoices`.`user_id` = ? and `invoices`.`user_id` is not null 
          [bindings] =&gt; Array ( 
              [0] =&gt; 1 
          ) 
          [time] =&gt; 1.15 
      ) 
  )
  </code></pre>
  
  <p>Production installation without quotations around int (not working)</p>
  
  <pre><code>Array ( 
      [0] =&gt; Array ( 
          [query] =&gt; select * from `users` where `users`.`id` = ? limit 1
          [bindings] =&gt; Array ( 
              [0] =&gt; 1 
          ) 
          [time] =&gt; 2.3 
      ) 
      [1] =&gt; Array ( 
          [query] =&gt; select * from `invoices` where `invoices`.`user_id` = ? and `invoices`.`user_id` is not null 
          [bindings] =&gt; Array ( 
              [0] =&gt; 1 
          ) 
          [time] =&gt; 0.67 
      ) 
  )
  </code></pre>
  
  <p>Production installation with quotations around int (working)</p>
  
  <pre><code>Array ( 
      [0] =&gt; Array ( 
          [query] =&gt; select * from `users` where `users`.`id` = ? limit 1 
          [bindings] =&gt; Array ( 
              [0] =&gt; 1 
          ) 
          [time] =&gt; 0.88 
      ) 
      [1] =&gt; Array ( 
          [query] =&gt; select * from `invoices` where `invoices`.`user_id` = ? and `invoices`.`user_id` is not null 
          [bindings] =&gt; Array ( 
              [0] =&gt; 1 
          ) 
          [time] =&gt; 0.81 
      ) 
  )
  </code></pre>
  
  <p>Solution:</p>
  
  <p>It turns out I didn't have mysqlnd as the active driver on my server. Activating it solved the issue.</p>