title: Laravel - Mass Assignment Exception error
body: <p>I am trying to save multiple rows to a table, however, I am presented with a <code>Mass Assignment Error</code>.</p>
  
  <p>The error is: <code>Illuminate \ Database \ Eloquent \ MassAssignmentException criteria_id</code></p>
  
  <pre><code>$criteria-&gt;save();
  
      $criteria_id = $criteria-&gt;id;
  
       foreach(Input::get('bedrooms') as $bedroom){
          $new_bedroom=array(
              'criteria_id' =&gt; $criteria-&gt;id,
              'bedroom' =&gt; $bedroom,
              );
          $bedroom = new Bedroom($new_bedroom);
          $bedroom-&gt;save();
      }
  </code></pre>
  
  <p>My database structure is:</p>
  
  <p><img src="https://i.stack.imgur.com/y7Ge9.png" alt="screenshot"></p>
  
  <p>so there isn't any incorrect spelling. The criteria_id comes from the variable from the recently saved criteria (see code above forloop).</p>
  
  <p>Any help would be greatly appreciated.</p>