title: how to insert multiple fields in laravel?
body: <p>I have a table that has :</p>
  
  <p>role</p>
  
  <p>name</p>
  
  <p>age</p>
  
  <p>like this.</p>
  
  <pre><code>&lt;input type="text" name="role[]" value="father"&gt;
  &lt;input type="text" name="role[]" value="mother"&gt;
  
  &lt;input type="text" name="name[]" value="Anton"&gt;
  &lt;input type="text" name="name[]" value="Shirley"&gt;
  
  &lt;input type="text" name="age[]" value="53"&gt;
  &lt;input type="text" name="age[]" value="49"&gt;
  </code></pre>
  
  <p>how ever I can only save the role[] only.</p>
  
  <p>here is my code :</p>
  
  <pre><code>foreach(Input::get('role') as $i)
              {
  
  
                  $data = new Family_background();
  
                  $data -&gt; role = $i;
                  $data -&gt; name = Input::get('name');
                  $data -&gt; age = Input::get('age');
                  $data -&gt; save();
  
  
              }
  </code></pre>
  
  <p>p.s I suck at this. </p>
  
  <p>any help will be appreciated. thanks.</p>