You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eloquent.md
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -879,7 +879,7 @@ $user->getOriginal('name'); // John
879
879
$user->getOriginal(); // Array of original attributes...
880
880
```
881
881
882
-
The `getChanges` method returns an array containing the attributes that changed when the model was last saved:
882
+
The `getChanges` method returns an array containing the attributes that changed when the model was last saved, while the `getPrevious` method returns an array containing the original attribute values before the model was last saved:
0 commit comments