title: Add 1 second in between array items so that created_at in db aren't all the same, Laravel createMany?
body: <p>I have a table called <code>event_speakers</code>. In the app, a user can click on a <code>+</code> icon and add as many speakers as they want.</p>
  <p>I'm using a for loop and then Laravel's <code>createMany</code> method.
  The problem is that the order of the speakers is coming out wrong when I fetch them from the db, and I can't sort them because the <code>created_at</code> and <code>updated_at</code> columns in the database are all exactly the same.</p>
  <p>Is there a way to somehow add a second or a few milliseconds in between each record so that the <code>created_at</code> date and time are not all exactly the same?</p>
  <p>Here is my code that successfully inserts the data:</p>
  <pre><code>for ($i = 0; $i &lt; $numRecords; $i++) {
      if ($request-&gt;speaker_name_en[$i] != null) {
          $data[] = [
              'photo' =&gt; $this-&gt;uploadImage($livestream, $client, $request['speaker_image_en'][$i]),
              'name_en' =&gt; $request-&gt;speaker_name_en[$i],
              'name_fr' =&gt; $request-&gt;speaker_name_fr[$i],
              'title_en' =&gt; $request-&gt;speaker_title_en[$i],
              'subtitle_en' =&gt; $request-&gt;speaker_subtitle_en[$i],
              'description_en' =&gt; $request-&gt;speaker_description_en[$i],
              'title_fr' =&gt; $request-&gt;speaker_title_fr[$i],
              'subtitle_fr' =&gt; $request-&gt;speaker_subtitle_fr[$i],
              'description_fr' =&gt; $request-&gt;speaker_description_fr[$i],
              'client_id' =&gt; $client-&gt;id
          ];
      }
  }
  if (isset($data)) {
      $client-&gt;eventspeakers()-&gt;createMany($data);
  }
  </code></pre>
  <p>Any ideas?</p>