Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJoel Byrd
507 Pointsupdate() vs. save()
What's the difference between update() and save()? In the Laravel documentation, it says to use save() both when creating a record and when updating one. But I noticed in the tutorial, Hampton is using update() to update a record (in the update controller method).
1 Answer
J Scott Erickson
11,883 PointsLooking over documentation it seems like they're almost the same functionally. However it appears that update can work with multiple records at a time whereas save seems to be a method for single records.