Skip to content

Instantly share code, notes, and snippets.

@mgmgpyaesonewin
Created November 13, 2019 10:09
Show Gist options
  • Save mgmgpyaesonewin/d0a0c89148e34fcbecc0c105d7929ec3 to your computer and use it in GitHub Desktop.
Save mgmgpyaesonewin/d0a0c89148e34fcbecc0c105d7929ec3 to your computer and use it in GitHub Desktop.
$faker = \Faker\Factory::create();
$tomorrow = Carbon::createFromTimeStamp($faker->dateTimeBetween('now', '+01 days')->getTimestamp());
$end_time = Carbon::createFromFormat('Y-m-d H:i:s', $tomorrow)->addHours(3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment