-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "addObservableEvents" to initializeArchivable #21
Comments
Thanks for this - will take a look at some point later this week. If you have time yourself, please feel free to submit a PR! |
Resolved in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So that the events fired by this trait can be handled properly in the model's observer, you need to add the following to the initializeArchivable method:
$this->addObservableEvents([ 'archiving', 'archived', 'unArchiving', 'unArchived' ]);
The text was updated successfully, but these errors were encountered: