title: How to create a fake event with faker dateTimeBetween?
body: <p>I am trying to create a Factory in Laravel that will fake an event created on a calendar. The event has a <strong>Start DateTime</strong> and <strong>End DateTime</strong>. I want the start date to be sometime in the future from now and the end dateTime to be within a few hours of the start dateTime. I keep getting the same dateTime on both start and end.</p>
  
  <p>I have tried a few different methods that I found from Google and they all result in both the start and end dateTimes being identical.</p>
  
  <pre class="lang-php prettyprint-override"><code>use Faker\Generator as Faker;
  
  $factory-&gt;define(App\Event::class, function (Faker $faker) {
  
      $start_date = $faker-&gt;dateTimeBetween('+0 days', '+1 month');
      $end_date = $faker-&gt;dateTimeBetween($start_date, $start_date-&gt;modify('+5 hours'));
  
      $user = factory(App\User::class)-&gt;create();
  
      return [
          'name' =&gt; $faker-&gt;sentence,
          'description' =&gt; $faker-&gt;paragraph,
          'start_date_time' =&gt; $start_date,
          'end_date_time' =&gt; $end_date,
          'owner_id' =&gt; $user-&gt;id,
          ];
  });
  </code></pre>
  
  <p>I expect the start DateTime to be between now and 1 month and,
  I expect the end DateTime to be between the start dateTime and 5 hours later.</p>