title: Laravel insert and update to JSON not working
body: <p>Can't figure out why JSON field is being ignored. </p>
  
  <p>This one doesn't work:</p>
  
  <pre><code>Registries::create([
      'nr' =&gt; $old_document-&gt;no,
      'metas-&gt;name' =&gt; 'r01',
  ]);
  </code></pre>
  
  <p>In model I have set:</p>
  
  <pre><code>protected $casts = [
          'metas' =&gt; 'array',
      ];
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>protected $fillable = [
          'nr',
          'metas'
      ];
  </code></pre>
  
  <p>I think the problem is in attributes casting, because this one is working:</p>
  
  <pre><code>Registries::create([
      'nr' =&gt; $old_document-&gt;no,
      'metas' =&gt; json_encode(['name'=&gt;'r01']),
  ]);
  </code></pre>
  
  <p>I'm not getting any errors just JSON column stays empty.</p>