title: Eloquent and mysql casting to boolean not working
body: <pre><code>  $mm = new MyModel();
    $mm-&gt;share_info = 'yes';
    $mm-&gt;save();
  </code></pre>
  
  <p>model:</p>
  
  <pre><code>class MyModel extends Model
  {
  
      public $table = 'mymodel';
  
      const CREATED_AT = 'created_at';
      const UPDATED_AT = 'updated_at';
  
  
  
      public $fillable = [
          'share_info',
      ];
  
  
      protected $casts = [
          'share_info' =&gt; 'boolean',
      ];
  </code></pre>
  
  <p>result column, is boolean tinyint in mysql. </p>
  
  <p><strong>Result is 0 in DB instead of 1.</strong></p>
  
  <p><strong>Why?</strong> </p>
  
  <pre><code>  $mm-&gt;share_info = true;
  </code></pre>
  
  <p>does work as expected</p>