Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Revisor Laravel Package

indracollective/laravel-revisor

View on GitHub
Deep Wiki
Context7

Model Events

Laravel Revisor fires several Model Events for you hook into key publishing and versioning events.

All events are fired on the Draft record, and pass the relevant Published or Versioned record as an argument to your callback (if applicable).

Event listeners can be registered using static methods on the Model class. The method names correspond to the event name.

Page::published(function (Page $page, Page $publishedRecord) {
    ...
});

Publishing Events

Event Description
publishing Fired before publishing a Model
published Fired after publishing a Model
unpublishing Fired before unpublishing a Model
unpublished Fired after unpublishing a Model

Versioning Events

Event Description
savingNewVersion Fired before saving a new Version
savedNewVersion Fired after saving a new Version
syncingToCurrentVersion Fired before syncing to the current Version
syncedToCurrentVersion Fired after syncing to the current Version
revertingToVersion Fired before reverting to a Version
revertedToVersion Fired after reverting to a Version
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codraw/framework-extra-bundle
codraw/messenger
codraw/security
codraw/mailer
codraw/contracts
codraw/profiling
codraw/dependency-injection
codraw/tester
codraw/core
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony