title: How to insert multiple records with createMany method in laravel
body: <p>i want to create multi record with createMany , how can i insert array to this method Without Data replication ? </p>
  
  <pre><code> public function update(Request $request, Question $question)
      {
          $options = $request-&gt;only('title', 'description', 'question_id');
  
          $options_data = [];
  
          foreach ($options as $key =&gt; $value) {
  
              $options_data[] =[
                  'title' =&gt; $options[$key],
                  'description' =&gt;$options[$key],
                  'question_id' =&gt; $options[$key]
              ];
  
          }
  
          $question-&gt;options()-&gt;createMany($options_data);
  </code></pre>
  
  <p>result: dd()
  i submit 2 record with 3 fields </p>
  
  <pre><code>array:3 [▼
    0 =&gt; array:3 [▼
      "title" =&gt; array:2 [▼
        0 =&gt; "option one"
        1 =&gt; "option two"
      ]
      "description" =&gt; array:2 [▼
        0 =&gt; "option one"
        1 =&gt; "option two"
      ]
      "question_id" =&gt; array:2 [▼
        0 =&gt; "option one"
        1 =&gt; "option two"
      ]
    ]
    1 =&gt; array:3 [▼
      "title" =&gt; array:2 [▼
        0 =&gt; "option description"
        1 =&gt; "option two description"
      ]
      "description" =&gt; array:2 [▼
        0 =&gt; "option description"
        1 =&gt; "option two description"
      ]
      "question_id" =&gt; array:2 [▼
        0 =&gt; "option description"
        1 =&gt; "option two description"
      ]
    ]
    2 =&gt; array:3 [▼
      "title" =&gt; array:2 [▼
        0 =&gt; "14"
        1 =&gt; "14"
      ]
      "description" =&gt; array:2 [▼
        0 =&gt; "14"
        1 =&gt; "14"
      ]
      "question_id" =&gt; array:2 [▼
        0 =&gt; "14"
        1 =&gt; "14"
      ]
    ]
  ]
  </code></pre>
  
  <p>My form have 3 fields for submit to this model title[],description[],question_id[]
  this form is a repeatable form</p>