laravel clone row

Solutions on MaxInterview for laravel clone row by the best coders in the world

showing results for - "laravel clone row"
Michela
25 Aug 2019
1$data = Model::find(1);
2$new_data = $data->replicate();
3$new_data->created_at = now();
4$new_data->save();