Duplicating a Database Record in Laravel | HackerNoon
Briefly

Good Enough" Isn't Always Good Enough This gets the job done, but is challenging for a few reasons, the most important one is the fragility of the implementation. What if we add new columns to the applications table? Or we updated the implementation of the Application model itself? This "brute-force" method means that we then have to both remember we implemented our copy function like this, and then update it to reflect reality.
Don't Be Too Clever Later on in my career, I probably would have grabbed an array of the reco
Read at Hackernoon
[
|
]