Laravel duplicate register

Reading time: less than 1 minute

Laravel duplicate register

How do I duplicate a record in Laravel using Eloquent?

$result = People::find(1);
$newPeople = $result->replicate();
$newPeople->save();