Answers for "laravel clone row"

PHP
1

laravel clone row

$data = Model::find(1);
$new_data = $data->replicate();
$new_data->created_at = now();
$new_data->save();
Posted by: Guest on July-03-2021

Browse Popular Code Answers by Language