We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2767b47 commit 9e783b6Copy full SHA for 9e783b6
src/Concerns/DetectsChanges.php
@@ -16,7 +16,7 @@ trait DetectsChanges
16
*/
17
protected static function bootDetectsChanges()
18
{
19
- static::updating(function (Model $model) {
+ static::saving(function (Model $model) {
20
$oldModel = $model->replicate()->setRawAttributes($model->getOriginal());
21
22
$model->oldAttributes = $oldModel->getLoggedAttributeValues();
0 commit comments