1$data = Model::find(1);
2$new_data = $data->replicate();
3$new_data->created_at = now();
4$new_data->save();
1// Retrieve the first task
2$task = Task::first();
3
4$newTask = $task->replicate();
5$newTask->project_id = 16; // the new project_id
6$newTask->save();