📌  相关文章
📜  Laravel eloquent 获取无重复数据 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:37.755000             🧑  作者: Mango

代码示例2
// Retrieve the first task
$task = Task::first();

$newTask = $task->replicate();
$newTask->project_id = 16; // the new project_id
$newTask->save();