title: Laravel eloquent updating tinyint (boolean)
body: <p>I have a weird issue when updating eloquent model, I use a checkbox (1 || undefined ) and patch all the data after validation using</p>
  <pre><code>$input = $request-&gt;all();
  $service-&gt;update($input);
  </code></pre>
  <p>I tried to check the checkbox specifically</p>
  <pre><code>$input['active'] = ($request-&gt;has('active') &amp;&amp; $input['active']) ? 1 : 0
  </code></pre>
  <p>but it still wouldn't affect the database.</p>
  <p>When I dump the <code>Request</code> I can see <code>active:</code> <code>1</code> or <code>0</code> but nothing of that changes the database on <code>update()</code></p>
  <p>I did a quick testing and using</p>
  <pre><code>$service-&gt;active = ($request-&gt;has('active') &amp;&amp; $input['active']) ? 1 : 0 ;
  $service-&gt;save();
  </code></pre>
  <p>did the job. But why the <code>update()</code> isn't updating this field ?</p>