title: Laravel 5 Array with key save in model
body: <p>Have array which have <strong><em>key &amp; value</em></strong>. The keys name are same database columns name.</p>
  
  <p><strong><em>Total of keys in an index is greater than  50.</em></strong></p>
  
  <ul>
  <li><p>So,<strong>not possible to save data  one by one key  like</strong></p>
  
  <pre><code>$user = new User;
  
  $user-&gt;name = 'John';
  ..........
  .......
  .......so on
  
  $user-&gt;save();
  </code></pre></li>
  </ul>
  
  <p><strong>Sample array:</strong></p>
  
  <pre>
  Array
  (
      [name] => 'Amit',
      [age] => 25,
      [field1] => 'val1',
      ....
    [field33] => 'how'    ,
  ....
     [field54] => 'sumit'     
  )
  </pre>
  
  <p><em>Now, my question is that how can i save data in an model using easiest process</em>.</p>
  
  <h2>Info:</h2>
  
  <ul>
  <li>Using laravel 5</li>
  </ul>
  
  <h2>Try:</h2>
  
  <pre><code>$Plan=new Plans;
   $Plan-&gt;fill( $array);
   $Plan-&gt;save();
  </code></pre>
  
  <p><strong><em>Note:</em></strong> <em>I know that fill not working as it  not defined at  fillable variable of that   model</em></p>