header 1 header 2 cell 1 cell 2 cell 3 cell 4
public function relativeUpdateTaskDates($startDate, $tasks) { $startDate = Carbon::createFromFormat('m-d-Y', $startDate); foreach ($tasks as $key => $task) { $interval = $key + 1; $taskDate = $startDate->copy()->addDays($interval); $task->date = $taskDate->format('m-d-Y'); } return $tasks; }
Not enough data available to satisfy format
New contributor
Mudassir hussain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.