Skip to content
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

Closed
Kaylakaze opened this issue Feb 6, 2024 · 2 comments
Closed

Add "addObservableEvents" to initializeArchivable #21

Kaylakaze opened this issue Feb 6, 2024 · 2 comments

Comments

@Kaylakaze
Copy link
Contributor

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' ]);

@joelbutcher
Copy link
Owner

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!

@joelbutcher
Copy link
Owner

Resolved in v1.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants