Is it possible to pass an array to Eloquent and have it update, create or delete relations in one shot?
My usage: a SPA and a user has many addresses:
When I upload to the server, I want to do a diff on existing addresses, and take action accordingly:
Is there a built-in way to do this?
The other approach I suppose would be to do this one at a time, but in my case, I want the user to be able to update various forms in sequence, then only at the end submit data.
So ideally I'd have something like:
But happy to do it all manually.