copy record with all relations laravel 5.4
0
i have to copy a record from db I am trying this $new_p = $p->replicate(); $new_p->save(); but Its not saved P model has many relations i dont know how to copy all !
php database laravel-5 laravel-5.4 relation
share | improve this question
asked Nov 21 at 9:11
flower
166 1 5 18
add a comment |
0
...