Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel clone row

$data = Model::find(1);
$new_data = $data->replicate();
$new_data->created_at = now();
$new_data->save();
 
PREVIOUS NEXT
Tagged: #laravel #clone #row
ADD COMMENT
Topic
Name
4+8 =