Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Since updating already has the same fields as while registering minus a few fields (password roles etc), is it better practice to:
1) create a brand new model class dedicated with the exact same duplicate fields that are required to be set in order to be updated (has the exact fields allowed to be updated)
2) or use the same model class that was used to register the whole thing (this has all the fields including the ones which arent allowed to be updated, so programmatically you'd have to target only fields that you want to update)
rant