Laravel this is not only a practical framework, it is also a programming style
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 !
Aucun commentaire:
Enregistrer un commentaire