Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-cannon committed Jan 20, 2025
1 parent aa9d2fd commit 4b17ed0
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/Traits/Rewindable.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,6 @@ public function initVersion(): void
});
}

protected function dispatchRewindEvent(): void
{
// If the model signals it does not want Rewindable events, skip
if (! empty($this->disableRewindEvents)) {
return;
}

// If there's no change, don't fire the event
if (empty($this->getDirty()) && ! $this->wasRecentlyCreated && $this->exists) {
return;
}

event(new RewindVersionCreating($this));
}

/**
* A hasMany relationship to the version records.
*/
Expand Down

0 comments on commit 4b17ed0

Please sign in to comment.