-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Feat: Ability to disable auditable #35
base: master
Are you sure you want to change the base?
Conversation
Thanks for the contribution. I think this is already covered in the framework via https://laravel.com/docs/11.x/eloquent#saving-a-single-model-without-events? |
Hello, sorry for the late answer. Yes it's globally covered by the framework, but if you want to still use other events and only prevent auditable events to trigger it might come handy as much as $timestamps allows it and doesn't stop other events from being fired. I had an issue with php stan which I discovered here and I can't find a way to make him understand that my attribute does exists |
@GoatFreezy got your point and makes sense to me now. Can you please resolve the conflicts? In addition, the
|
5fd30e7
to
9a6c92a
Compare
Hello, |
I think the issue with static analysis will be fixed via generics. We can work on it on another PR. I will review the changes as soon as I can. Thanks! |
Add an attribute to disable auditable on the fly (like timestamps)
Can be usefull for easier batch or command processing.