Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel duplicate row

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