Skip to content

Instantly share code, notes, and snippets.

@relwen
Last active June 22, 2021 17:07
Show Gist options
  • Save relwen/6de031eb266205ef7c48ffab8284a2aa to your computer and use it in GitHub Desktop.
Save relwen/6de031eb266205ef7c48ffab8284a2aa to your computer and use it in GitHub Desktop.
$date_begin_at = new \Carbon\Carbon($date_begin);
for($i = 0; $i <= 3; $i++)
{
$date = $date_begin_at->addDays();
$date_add = $date->format('d-m-Y');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment